ci: the sealed supply-chain scan refuses scanner configuration in the tree it scans (codewire#3991) #32

Merged
noel merged 1 commit from fix/source-approval-refuses-scanner-config into main 2026-11-11 12:59:24 +00:00
Owner

Part of codewire#3991 (P1 security): the sealed supply-chain scan no longer lets a pull request bring its own scanner ignores. It matches codewire#4122 and noel/infra#2427; the orchestrator asked for all four repositories that share this workflow (deploy, private-docs, root, act-node-docker).

Problem: source-approval runs from the protected base on pull_request_target but scans the candidate tree, where osv-scanner loads any osv-scanner.toml and zizmor any zizmor.yml or .github/zizmor.yml. Verified locally with the pinned scanners: a tree osv-scanner.toml took a vulnerable lockfile's findings from 2 to 0, and a tree .github/zizmor.yml turned zizmor's exit 14 into 0.

Change: refuse any osv-scanner.toml, zizmor.y*ml or .zizmor.y*ml (file or symbolic link) outside .git before supplychain runs, naming the files. The workflow is byte-identical to noel/infra's after #2427 (a666b602…), whose check-system-hz-forgejo-ci runs this guard as written: a clean tree and a .git-internal file are admitted, five forms are refused with 65. No such file exists in this repository today, so no result changes.

Trust: this narrows trust, so under root#32 it needs no per-action owner yes; recorded on codewire#3991. The durable fix (supplychain 83fffe1: osv-scanner gets an empty --config, zizmor --no-config) follows through the runner image and this workflow's EXPECTED_SUPPLYCHAIN.

Part of codewire#3991 (P1 security): the sealed supply-chain scan no longer lets a pull request bring its own scanner ignores. It matches codewire#4122 and noel/infra#2427; the orchestrator asked for all four repositories that share this workflow (deploy, private-docs, root, act-node-docker). **Problem:** source-approval runs from the protected base on `pull_request_target` but scans the candidate tree, where osv-scanner loads any `osv-scanner.toml` and zizmor any `zizmor.yml` or `.github/zizmor.yml`. Verified locally with the pinned scanners: a tree `osv-scanner.toml` took a vulnerable lockfile's findings from 2 to 0, and a tree `.github/zizmor.yml` turned zizmor's exit 14 into 0. **Change:** refuse any `osv-scanner.toml`, `zizmor.y*ml` or `.zizmor.y*ml` (file or symbolic link) outside `.git` before `supplychain` runs, naming the files. The workflow is byte-identical to noel/infra's after #2427 (`a666b602…`), whose `check-system-hz-forgejo-ci` runs this guard as written: a clean tree and a `.git`-internal file are admitted, five forms are refused with 65. No such file exists in this repository today, so no result changes. **Trust:** this narrows trust, so under root#32 it needs no per-action owner yes; recorded on codewire#3991. The durable fix (supplychain `83fffe1`: osv-scanner gets an empty `--config`, zizmor `--no-config`) follows through the runner image and this workflow's `EXPECTED_SUPPLYCHAIN`.
ci: the sealed supply-chain scan refuses scanner configuration in the tree it scans (codewire#3991)
All checks were successful
Supply-chain scan / Supply-chain scan (pull_request_target) Successful in 7s
65282f974c
osv-scanner and zizmor read configuration files from the tree they scan. On
a pull request that tree is the candidate, so it could carry its own
osv-scanner.toml or zizmor.yml ignores and hide findings before the protected
base's source policy sees them. source-approval, which runs from the
protected base, now refuses any such file (or symbolic link) outside .git
before running supplychain. The workflow is byte-identical to noel/infra's
(a666b602...541b), whose check-system-hz-forgejo-ci runs this guard against
a clean tree, a .git-internal file and five refused forms.
noel merged commit 9282d3ad7b into main 2026-11-11 12:59:24 +00:00
noel deleted branch fix/source-approval-refuses-scanner-config 2026-11-11 12:59:26 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
noel/act-node-docker!32
No description provided.