name: GitHub Actions Security Analysis on: push: branches: [main, next] paths: - '.github/workflows/**' - '.github/zizmor.yml' pull_request: paths: - '.github/workflows/**' - '.github/zizmor.yml' permissions: {} jobs: zizmor: if: github.event_name == 'push' || !github.event.pull_request.head.repo.fork runs-on: ubuntu-latest permissions: security-events: write contents: read actions: read steps: - name: Checkout repository uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: persist-credentials: false - name: Run zizmor uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6