Repository navigation
ci: make the commit-message gate real, renew expired grype suppressions - #90
Conversation
The "💬 Commit Message" job is in the branch ruleset's required status checks, but continue-on-error: true meant it always reported success regardless of outcome, and the run step only emitted ::warning:: without ever exiting non-zero — so removing continue-on-error alone would not have changed anything. Drop the advisory line, switch the step's annotations to ::error::, and exit 1 when a commit fails validation, so the required check reflects reality. Verified against the one open PR (#89, docs/readme-badge-truth): its single commit subject passes scripts/validate-commit-msg.sh locally, so this does not newly block it.
Every "review by 2026-07-15" suppression in .grype.yaml was expired (today is 2026-08-11). Re-audited each against the live Wolfi docker-compose package (now v5.4.0-r0, up from v5.3.1) by pulling the apk directly and running grype against the extracted binary: - GO-2026-5025/5026/5027/5028/5029/5030 (x/net) and GO-2026-4610 (docker/cli): fixed upstream — Wolfi's docker-compose now vendors x/net v0.57.0 and docker/cli v29.6.2, both past the advisories' fix versions. Confirmed zero matches; dropped as dead config. - GO-2026-4883/GO-2026-4887 (docker/docker): dead entries — they're the Go-vulndb aliases of GHSA-pxq6-2prw-chj9 and GHSA-x744-4wpc-v9h2 below; Grype reports the finding under the GHSA id, so these two never matched anything (confirmed 0 ignoredMatches in isolation). - The five remaining GHSA-* docker/docker entries: still genuinely open, no fix exists on the legacy docker/docker import path (only the moby/moby/v2 rewrite is patched), so kept with a renewed 2026-11-15 review date and a sharper justification.
|
@coderabbitai review |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Warning Review limit reached
Next review available in: 48 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
biggest-littlest
left a comment
There was a problem hiding this comment.
Gate is real now and the suppressions are re-verified against the current binary.
Summary
Two integrity fixes for CI/security config that had drifted into silently doing nothing:
1. The "💬 Commit Message" required check couldn't fail
It's in the branch ruleset's
required_status_checks(verified viagh api repos/CodesWhat/portwing/rulesets/17620625), butcontinue-on-error: truemeant the job always reported success. Worse: removing that line alone would not have fixed it — the run step only ever emitted::warning::on a bad commit subject and never exited non-zero, so the job would still succeed regardless. Fixed both: droppedcontinue-on-error, and the step now emits::error::andexit 1when a commit failsscripts/validate-commit-msg.sh.Open-PR validation: Only one PR was open at the time (#89,
docs/readme-badge-truth). Its one commit —docs(readme): fix lying badges— passesscripts/validate-commit-msg.shlocally (exit 0), so this change does not newly block it.One correction to the original ask: I was told the validator "should accept an optional leading non-ASCII emoji run" for legacy gitmoji-prefixed subjects. It does not —
scripts/validate-commit-msg.shexplicitly rejects any non-ASCII leading byte with a dedicated error message ("Emoji are no longer used in commit messages"). This doesn't matter in practice because the check only inspects commits introduced by a PR (origin/${BASE_REF}..HEAD), never historical commits already in the base branch, so old gitmoji history is never re-evaluated. Flagging it here in case that assumption was load-bearing elsewhere.2. Every dated grype suppression was expired
All 14 entries in
.grype.yamlcarrying "review by 2026-07-15" were expired (today is 2026-08-11). Re-audited each against reality rather than just bumping dates: pulled the actual current Wolfidocker-composeapk (nowv5.4.0-r0, up from thev5.3.1the suppressions were pinned against), extracted the binary, and rangrypeagainst it directly with.grype.yamlapplied.GO-2026-5025/5026/5027/5028/5029/5030(x/net)GO-2026-4610(docker/cli)GO-2026-4883,GO-2026-4887(docker/docker)GHSA-pxq6-2prw-chj9andGHSA-x744-4wpc-v9h2(identical summaries). Grype reports the finding under the GHSA id, so these two never matched anything — confirmed 0ignoredMatchestesting each in isolation.GHSA-pxq6-2prw-chj9,GHSA-x744-4wpc-v9h2,GHSA-vp62-88p7-qqf5,GHSA-rg2x-37c3-w2rh,GHSA-x86f-5xw2-fm2r(docker/docker)docker/docker v28.5.2+incompatibleis still vendored, and none of these advisories have a fix on that legacy import path — only themoby/moby/v2rewrite is patched, which is Wolfi's call, not portwing's.GHSA-x744-4wpc-v9h2specifically does have an upstream fix (docker/docker v29.3.1) but Wolfi's compose package hasn't picked it up yet.Re-ran
grype dir:<extracted binary> --config .grype.yamlafter the edit: 0 unignored matches, 5 correctly suppressed — no regression.The four undated entries at the top of the file (
GO-2026-5932x3,GO-2026-5841) were out of scope for this pass (no "review by" date) and untouched, though one of them (GO-2026-5932pinned to x/crypto v0.53.0 for docker-compose) is also now version-stale against the real v0.54.0 — worth a follow-up look.Test plan
.github/workflows/ci.ymland.grype.yamlparse as valid YAMLscripts/validate-commit-msg.shtested against emoji-prefixed and plain subjects locally, and against PR docs(readme): fix lying badges #89's actual commit subjectgryperun directly against the real currentdocker-composebinary (pulled from packages.wolfi.dev) with the new.grype.yaml: 0 unignored matches