oxc/.github/workflows/ci_security.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 28: mapping key "uses" already defined at line 24 line 29: mapping key "with" already defined at line 25
Alexander S. 5172f32457
ci: use zizmor as a rust package (#7844)
Co-authored-by: Boshen <boshenc@gmail.com>
2024-12-13 20:54:26 +08:00

41 lines
1 KiB
YAML

name: GitHub Actions Security Analysis
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- ".github/workflows/**"
push:
branches:
- main
- "renovate/**"
paths:
- ".github/workflows/**"
jobs:
zizmor:
name: zizmor latest via PyPI
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
uses: taiki-e/install-action@8c39981484df4e7ba41af8e8e078ac546d5e1b11 # v2.46.8
with:
tool: zizmor
- name: Run zizmor 🌈
run: zizmor --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3
with:
sarif_file: results.sarif
category: zizmor