ci: the sealed supply-chain scan refuses scanner configuration in the tree it scans (codewire#3991) #32
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/source-approval-refuses-scanner-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_targetbut scans the candidate tree, where osv-scanner loads anyosv-scanner.tomland zizmor anyzizmor.ymlor.github/zizmor.yml. Verified locally with the pinned scanners: a treeosv-scanner.tomltook a vulnerable lockfile's findings from 2 to 0, and a tree.github/zizmor.ymlturned zizmor's exit 14 into 0.Change: refuse any
osv-scanner.toml,zizmor.y*mlor.zizmor.y*ml(file or symbolic link) outside.gitbeforesupplychainruns, naming the files. The workflow is byte-identical to noel/infra's after #2427 (a666b602…), whosecheck-system-hz-forgejo-ciruns 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'sEXPECTED_SUPPLYCHAIN.