Skip to content

chore: pin and bump action refs (SEC-171) - #6863

Merged
lokey merged 2 commits into
masterfrom
fix/sec-171-pin-and-bump-action-refs
Apr 17, 2026
Merged

lokey merged 2 commits into
masterfrom
fix/sec-171-pin-and-bump-action-refs

Conversation

@aris1009

@aris1009 aris1009 commented Apr 9, 2026

Copy link
Copy Markdown
Member

What

Deterministic remediation of four zizmor audit rules:

  • known-vulnerable-actions — bumps vulnerable refs to the GHSA advisory's first_patched_version, re-pins to SHA, syncs the version comment.
  • unpinned-uses — rewrites @tag refs to @<sha> # <tag>.
  • ref-version-mismatch — rewrites the trailing comment to match the tag the pinned SHA actually points at.
  • impostor-commit — replaces the impostor SHA with the correct SHA for the tag.

All edits are SHA-pinned ref rewrites plus comment synchronisation. No workflow logic, step ordering, permissions, or non-.github/ files are touched.

How

  1. zizmor --fix=all run under a restricted config (sec-scan/sec-ops/sec-171-action-refs/zizmor.yml) that disables every other audit.
  2. A Python post-processor (postprocess.py) repairs any line where zizmor's auto-fix left the ref unpinned — an observed failure mode on certain impostor-commit cases. The post-processor resolves the tag → SHA via gh api and rewrites the line.
  3. Two sanity guards run before commit:
    • git diff --name-only must only contain paths under .github/.
    • Every added uses: line must match owner/repo@<40-hex-sha>.

⚠️ Merge blocker — SHA allowlist

Do NOT merge this PR until the new SHAs have been added to the org-level GitHub action allowlist. The rudderlabs org enforces a by-SHA allowlist on all uses: references (supply-chain guard). Every SHA introduced by this PR is captured in /tmp/sec-171-sha-manifest.txt on the machine that produced the sweep; the allowlist will be updated by @aris1009 before merge coordination.

Ticket

Closes part of SEC-171 — parent epic SEC-162.

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

zizmor found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@codecov

codecov Bot commented Apr 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.65%. Comparing base (f0bdc52) to head (a0516f9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6863      +/-   ##
==========================================
- Coverage   80.08%   79.65%   -0.43%     
==========================================
  Files         565      565              
  Lines       63308    63308              
==========================================
- Hits        50698    50427     -271     
- Misses       9619     9896     +277     
+ Partials     2991     2985       -6     

☔ View full report in Codecov by Sentry.
📢 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.

@aris1009 aris1009 changed the title fix(vuln): pin and bump action refs (SEC-171) chore(vuln): pin and bump action refs (SEC-171) Apr 14, 2026

@lokey lokey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved: SEC-171 workflow-only changes

@lokey lokey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved: SEC-171 workflow-only changes

@lokey lokey changed the title chore(vuln): pin and bump action refs (SEC-171) chore: pin and bump action refs (SEC-171) Apr 17, 2026
@lokey
lokey merged commit 8089953 into master Apr 17, 2026
49 of 52 checks passed
@lokey
lokey deleted the fix/sec-171-pin-and-bump-action-refs branch April 17, 2026 11:20
@atzoum atzoum mentioned this pull request Apr 21, 2026
1 task done
atzoum added a commit that referenced this pull request Apr 21, 2026
🔒 Scanned for secrets using gitleaks 8.30.1

# Description

regression caused by #6863

## Security

- [x] The code changed/added as part of this pull request won't create
any security issues with how the software is being used.
mihir20 pushed a commit that referenced this pull request Apr 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.74.0-rc.1](v1.73.0...v1.74.0-rc.1)
(2026-04-27)


### Features

* add configurable batch size for bulk inserting failed rsources records
([#6873](#6873))
([d8f6ea0](d8f6ea0))
* add native deletion support for identity removal in gzip files
([#6896](#6896))
([c1e27d0](c1e27d0))
* deep job pickups when no results cache is cold
([#6850](#6850))
([03e9d88](03e9d88))
* **jobsdb:** improve migration compaction
([#6844](#6844))
([b7f2b9f](b7f2b9f))


### Bug Fixes

* add correct host for salesforceBU destination
([#6906](#6906))
([2430cb4](2430cb4))
* batch router drained events metrics
([#6898](#6898))
([c5b2927](c5b2927))
* build action failing
([#6899](#6899))
([691a812](691a812))
* snowpipe struck scenarios
([#6895](#6895))
([35b07a8](35b07a8))
* use tid instead of vid
([#6908](#6908))
([954dcf7](954dcf7))


### Miscellaneous

* avoid marshalling proc error job payloads
([#6872](#6872))
([145826b](145826b))
* bump build-scan-push-action from v2.1.0 to v2.2.0
([#6903](#6903))
([e917f9b](e917f9b))
* contract tests for dns regressions and overrides
([#6864](#6864))
([b105678](b105678))
* pin and bump action refs (SEC-171)
([#6863](#6863))
([8089953](8089953))
* pytransformer pooling contract tests
([#6883](#6883))
([0530c8c](0530c8c))
* scope workflow permissions to least privilege (SEC-167)
([#6911](#6911))
([5600dbe](5600dbe))
* update Slack notification method in scheduled release workflow
([#6879](#6879))
([3b67dcb](3b67dcb))
* **vuln:** zizmor --fix=all findings (SEC-199)
([#6905](#6905))
([d8cc34f](d8cc34f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
mihir20 pushed a commit that referenced this pull request Apr 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.74.0](v1.73.0...v1.74.0)
(2026-04-27)


### Features

* add configurable batch size for bulk inserting failed rsources records
([#6873](#6873))
([d8f6ea0](d8f6ea0))
* add native deletion support for identity removal in gzip files
([#6896](#6896))
([c1e27d0](c1e27d0))
* deep job pickups when no results cache is cold
([#6850](#6850))
([03e9d88](03e9d88))
* **jobsdb:** improve migration compaction
([#6844](#6844))
([b7f2b9f](b7f2b9f))


### Bug Fixes

* add correct host for salesforceBU destination
([#6906](#6906))
([2430cb4](2430cb4))
* batch router drained events metrics
([#6898](#6898))
([c5b2927](c5b2927))
* build action failing
([#6899](#6899))
([691a812](691a812))
* snowpipe struck scenarios
([#6895](#6895))
([35b07a8](35b07a8))
* use tid instead of vid
([#6908](#6908))
([954dcf7](954dcf7))


### Miscellaneous

* avoid marshalling proc error job payloads
([#6872](#6872))
([145826b](145826b))
* bump build-scan-push-action from v2.1.0 to v2.2.0
([#6903](#6903))
([e917f9b](e917f9b))
* contract tests for dns regressions and overrides
([#6864](#6864))
([b105678](b105678))
* pin and bump action refs (SEC-171)
([#6863](#6863))
([8089953](8089953))
* pytransformer pooling contract tests
([#6883](#6883))
([0530c8c](0530c8c))
* scope workflow permissions to least privilege (SEC-167)
([#6911](#6911))
([5600dbe](5600dbe))
* update Slack notification method in scheduled release workflow
([#6879](#6879))
([3b67dcb](3b67dcb))
* **vuln:** zizmor --fix=all findings (SEC-199)
([#6905](#6905))
([d8cc34f](d8cc34f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
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