Skip to content

ci: clean the zizmor scan (persist-credentials + dependabot cooldown)#70

Merged
Pyronewbic merged 1 commit into
mainfrom
ci/zizmor-persist-credentials
Jul 5, 2026
Merged

ci: clean the zizmor scan (persist-credentials + dependabot cooldown)#70
Pyronewbic merged 1 commit into
mainfrom
ci/zizmor-persist-credentials

Conversation

@Pyronewbic

Copy link
Copy Markdown
Owner

The advisory zizmor lane (added in #64) has been failing on pre-existing findings. This resolves them so the scan is clean.

artipacked (16 findings) — persist-credentials: false

Every actions/checkout persists the GitHub token in .git/config by default, where a later step could read or leak it. No workflow does an authenticated git operation — image publishing is docker-login + cosign OIDC, releases use the token via gh/API, and release.yml's git archive is read-only — so persist-credentials: false is safe on all 16 checkouts. Submodule fetch is unaffected: the input only controls what's left in .git/config after checkout, not the token used during it.

dependabot-cooldown (1 finding) — 7-day cooldown

Added cooldown: { default-days: 7 } to dependabot.yml. A compromised action release is usually yanked within days, so waiting a week keeps a poisoned bump out of the weekly auto-PR window — a natural fit for this repo's pin-and-bump supply-chain posture.

Result

zizmor .github/ (online, as CI runs it) now reports "No findings to report", exit 0. actionlint (make lint-ci) still clean.

Regression guard

The zizmor lane is advisory (continue-on-error), so a future checkout could silently reintroduce artipacked without failing a required check. Added a guard to verify-ci-supplychain-unit.bats (the required unit lane): every actions/checkout must have a matching persist-credentials: false. Full unit lane green (304).

The 20 remaining zizmor items are suppressed (informational / low-confidence), unchanged.

The advisory zizmor lane flagged 16 artipacked findings (every actions/checkout
persists the token in .git/config) and one dependabot-cooldown. No workflow does
an authenticated git op (image push is docker-login, releases use the token via
gh; release.yml's git archive is read-only), so persist-credentials: false is
safe on every checkout - submodule fetch is unaffected (the input only controls
what's left in .git/config after checkout, not the checkout-time token). Added a
7-day dependabot cooldown so a freshly-compromised action version stays out of
the weekly auto-bump window. zizmor now reports zero findings (exit 0); a new
fleet-wide guard in verify-ci-supplychain-unit.bats keeps every checkout opted
out (the required lane backstops the advisory zizmor lane).
@Pyronewbic Pyronewbic merged commit 6b1b408 into main Jul 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant