Skip to content

[Codex Security] Any matching tag can publish packages from an unreviewed commit - #90

Merged
nieprzecietny merged 1 commit into
masterfrom
codex-security/arp_05e7603718b89d8f2d069da0362943f3
Dec 1, 2026
Merged

nieprzecietny merged 1 commit into
masterfrom
codex-security/arp_05e7603718b89d8f2d069da0362943f3

Conversation

@nieprzecietny

Copy link
Copy Markdown
Member

The patch makes package publication depend on validated, reviewed release provenance.

  • Publication moved from attacker-selectable tag-push workflow code to a default-branch repository_dispatch handler.
  • Exact SemVer, peeled SHA binding, and branch ancestry checks stop malformed, moved, or unreviewed tags before repository code runs.
  • OIDC login and NuGet push remain after every gate, preventing rejected source from acquiring publication authority.
  • The release-notes handoff preserves vX.Y.Z, prerelease, master, and release/* maintenance flows.

Static Verification Checks

  • Trusted workflow source (Passed) — .github/workflows/release.yml uses repository_dispatch, establishing attacker-selected tags cannot replace the credentialed workflow’s validation logic.

  • Release input validation (Passed) — .github/workflows/release.yml validates exact SemVer and the dispatched SHA before checkout, closing malformed and substituted tag paths.

  • Commit provenance gate (Passed) — Verify release commit provenance binds checkout HEAD to RELEASE_SHA and trusted release branches before build, blocking unreviewed commits.

  • Legitimate releases preserved (Passed) — .github/workflows/release-notes.yml dispatches peeled tag SHAs, preserving documented stable, prerelease, and maintenance-branch publication behavior.

  • Static diff integrity (Passed) — git diff --text --check inspected both workflows without runtime execution, establishing the patch contains no whitespace errors.

  • Finding: acf_6355512e46f9416e444f4bb68c04580c

  • Patch: arp_05e7603718b89d8f2d069da0362943f3

  • Base commit: c2e1ee49a2664b653a25227a14fc356db3e1f432

  • Patch SHA-256: aaa166ebc4b3ff372c777464510ca8fafec241c0a2f18456470e99efaf1017fa

@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.00%. Comparing base (c2e1ee4) to head (ab9d305).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   92.95%   93.00%   +0.04%     
==========================================
  Files         140      140              
  Lines        4869     4000     -869     
  Branches      538      540       +2     
==========================================
- Hits         4526     3720     -806     
+ Misses        216      156      -60     
+ Partials      127      124       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nieprzecietny
nieprzecietny marked this pull request as ready for review December 1, 2026 14:28
@nieprzecietny
nieprzecietny requested a review from a team as a code owner December 1, 2026 14:28
@nieprzecietny
nieprzecietny merged commit 87d7c7c into master Dec 1, 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