diff --git a/.agents/review-rules/qa-dx/workflow-safety.md b/.agents/review-rules/qa-dx/workflow-safety.md index e443586e80e..b7b0ce3631c 100644 --- a/.agents/review-rules/qa-dx/workflow-safety.md +++ b/.agents/review-rules/qa-dx/workflow-safety.md @@ -2,10 +2,10 @@ Applies to: `.github/workflows/**`, `.github/actions/**`, `.poutine.yml`. -Poutine and Zizmor already fail CI for the classic hazards — `pull_request_target` -(also an error-level `@n8n/code-health` rule), actions unpinned from a full commit -SHA, untrusted checkout execution, self-hosted runner exposure. Do not repeat -them. What follows is what the scanners cannot see. +Poutine already fails CI for the classic hazards — `pull_request_target` (also +an error-level `@n8n/code-health` rule), actions unpinned from a full commit SHA, +untrusted checkout execution, self-hosted runner exposure. Do not repeat them. +What follows is what the scanner cannot see. ## Silencing a scanner is the change to review @@ -13,10 +13,10 @@ them. What follows is what the scanners cannot see. (by purl) and `untrusted_checkout_exec` (by path). The file says "Add new entries only after security review". Nothing enforces that. -Flag any addition to `.poutine.yml`'s `skip:` block, any new `zizmor: ignore` -comment, and any new entry in `.github/poutine-rules/`'s exceptions. Ask what -was reviewed and why the finding is a false positive rather than a real one. -The entry needs a comment giving the reason, matching the ones already there. +Flag any addition to `.poutine.yml`'s `skip:` block or any new entry in +`.github/poutine-rules/`'s exceptions. Ask what was reviewed and why the finding +is a false positive rather than a real one. The entry needs a comment giving the +reason, matching the ones already there. ## A gate that cannot fail is not a gate diff --git a/.github/actions/setup-nodejs/action.yml b/.github/actions/setup-nodejs/action.yml index 75a1a3c342f..28984e5618f 100644 --- a/.github/actions/setup-nodejs/action.yml +++ b/.github/actions/setup-nodejs/action.yml @@ -78,7 +78,7 @@ runs: - name: Activate cached pnpm executable if: steps.cache-pnpm-exe.outputs.cache-hit == 'true' shell: bash - run: | # zizmor: ignore[github-env] Fixed paths contain no external input. + run: | PNPM_DEST="$HOME/setup-pnpm" echo "PNPM_HOME=$PNPM_DEST" >> "$GITHUB_ENV" echo "$PNPM_DEST" >> "$GITHUB_PATH" diff --git a/.github/workflows/build-v3-nightly.yml b/.github/workflows/build-v3-nightly.yml index 8762c49a551..87ed0b2fcc2 100644 --- a/.github/workflows/build-v3-nightly.yml +++ b/.github/workflows/build-v3-nightly.yml @@ -49,7 +49,7 @@ jobs: # release-publish.yml caller so docker-build-push.yml runs with the permissions # (its own per-job blocks + repo defaults) and org secrets it already relies on. # Capping here risks starving its sub-jobs (SLSA/attestation/scan/push). - uses: ./.github/workflows/docker-build-push.yml # zizmor: ignore[excessive-permissions,secrets-inherit] + uses: ./.github/workflows/docker-build-push.yml with: ref: '3.x' n8n_version: 'v3-nightly' diff --git a/.github/workflows/sec-ci-reusable.yml b/.github/workflows/sec-ci-reusable.yml index 67517180e63..7ccd1e33075 100644 --- a/.github/workflows/sec-ci-reusable.yml +++ b/.github/workflows/sec-ci-reusable.yml @@ -17,10 +17,6 @@ jobs: ref: ${{ inputs.ref }} secrets: inherit - zizmor-scan: - name: Zizmor Security Scan - uses: ./.github/workflows/sec-zizmor-reusable.yml - # Future security checks can be added here: # - dependency-scan: # - secret-detection: diff --git a/.github/workflows/sec-zizmor-reusable.yml b/.github/workflows/sec-zizmor-reusable.yml deleted file mode 100644 index d431334a0a0..00000000000 --- a/.github/workflows/sec-zizmor-reusable.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: 'Sec: Zizmor Scan' - -on: - workflow_dispatch: - workflow_call: - -permissions: {} - -jobs: - zizmor_scan: - name: Zizmor Security Scan - runs-on: ubuntu-latest - permissions: - security-events: write - steps: - - name: Checkout repository - uses: useblacksmith/checkout@bcec731f1eb1367240608d1c889a75b96db6ec53 # v1.5.0 - - - name: Run zizmor 🌈 - uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6 diff --git a/.github/workflows/test-evals-mcp.yml b/.github/workflows/test-evals-mcp.yml index 1a3883969e8..887b90d26b7 100644 --- a/.github/workflows/test-evals-mcp.yml +++ b/.github/workflows/test-evals-mcp.yml @@ -144,8 +144,7 @@ jobs: with: ref: ${{ inputs.branch || github.ref }} fetch-depth: 1 - # This job uploads artifacts and needs no token post-checkout — drop the - # persisted credential so it can't leak (zizmor: artipacked). + # This job uploads artifacts and needs no token after checkout. persist-credentials: false - name: Setup Environment diff --git a/cubic.yaml b/cubic.yaml index dd3d7aea371..8ea4a3bcc3a 100644 --- a/cubic.yaml +++ b/cubic.yaml @@ -79,7 +79,7 @@ reviews: ## Don't repeat what CI already fails on - `pnpm lint`, `pnpm typecheck`, Poutine, Zizmor and `@n8n/code-health` run on + `pnpm lint`, `pnpm typecheck`, Poutine and `@n8n/code-health` run on every PR. A defect one of them fails the build for is not a finding; the author sees it first. Rule files name the exemptions. Report what static analysis cannot see.