Skip to content

ci: make the commit-message gate real, renew expired grype suppressions - #90

Merged
scttbnsn merged 2 commits into
dev/v0.9from
ci/gate-truth
Aug 12, 2026
Merged

scttbnsn merged 2 commits into
dev/v0.9from
ci/gate-truth

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

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 via gh api repos/CodesWhat/portwing/rulesets/17620625), but continue-on-error: true meant 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: dropped continue-on-error, and the step now emits ::error:: and exit 1 when a commit fails scripts/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 — passes scripts/validate-commit-msg.sh locally (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.sh explicitly 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.yaml carrying "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 Wolfi docker-compose apk (now v5.4.0-r0, up from the v5.3.1 the suppressions were pinned against), extracted the binary, and ran grype against it directly with .grype.yaml applied.

Entries Verdict Why
GO-2026-5025/5026/5027/5028/5029/5030 (x/net) Removed — dead Wolfi's docker-compose now vendors x/net v0.57.0, past the v0.55.0 fix. Confirmed 0 matches.
GO-2026-4610 (docker/cli) Removed — dead Now vendors docker/cli v29.6.2 (past the v29.2.0 fix) and compose itself is past its own v5.1.0 fix line. Confirmed 0 matches.
GO-2026-4883, GO-2026-4887 (docker/docker) Removed — dead/duplicate These are the Go-vulndb aliases of GHSA-pxq6-2prw-chj9 and GHSA-x744-4wpc-v9h2 (identical summaries). Grype reports the finding under the GHSA id, so these two never matched anything — confirmed 0 ignoredMatches testing 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) Kept, date renewed to 2026-11-15 Still match: docker/docker v28.5.2+incompatible is still vendored, and none of these advisories have a fix on that legacy import path — only the moby/moby/v2 rewrite is patched, which is Wolfi's call, not portwing's. GHSA-x744-4wpc-v9h2 specifically 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.yaml after the edit: 0 unignored matches, 5 correctly suppressed — no regression.

The four undated entries at the top of the file (GO-2026-5932 x3, GO-2026-5841) were out of scope for this pass (no "review by" date) and untouched, though one of them (GO-2026-5932 pinned 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.yml and .grype.yaml parse as valid YAML
  • scripts/validate-commit-msg.sh tested against emoji-prefixed and plain subjects locally, and against PR docs(readme): fix lying badges #89's actual commit subject
  • grype run directly against the real current docker-compose binary (pulled from packages.wolfi.dev) with the new .grype.yaml: 0 unignored matches
  • Full pre-push gate passed locally (build, lint, test, govulncheck, fuzz, actionlint, zizmor, clean-tree)

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.
@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@vercel

vercel Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
getportwing Ready Ready Preview Aug 12, 2026 2:32am

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@scttbnsn, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 0df37ccd-bbb2-4122-983f-51e82ecf6e02

📥 Commits

Reviewing files that changed from the base of the PR and between 0727611 and 14a959d.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • .grype.yaml

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gate is real now and the suppressions are re-verified against the current binary.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@scttbnsn
scttbnsn merged commit c21dbb2 into dev/v0.9 Aug 12, 2026
28 of 29 checks passed
@scttbnsn
scttbnsn deleted the ci/gate-truth branch August 12, 2026 04:42

This branch was successfully deployed

1 active deployment
Preview — 14a959dd Deployed Aug 12, 2026 by vercel[bot]
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.

3 participants