Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

DEVOPS-33945: pin external action SHAs - #1

Open
vinayak-singh-deel wants to merge 1 commit into
mainfrom
DEVOPS-33945/pin-external-action-shas
Open

vinayak-singh-deel wants to merge 1 commit into
mainfrom
DEVOPS-33945/pin-external-action-shas

Conversation

@vinayak-singh-deel

Copy link
Copy Markdown

What

Replaces tag references for external GitHub Actions with the corresponding 40-char commit SHAs. The original tag is preserved as a trailing comment for readability.

Example:

- uses: actions/checkout@v4
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Applies to:

  • .github/workflows/*.yml / *.yaml
  • Composite action.yml / action.yaml files (at repo root and in subdirectories)

Only uses: references to non-letsdeel owners are pinned — internal reusable workflows and composite actions are left as-is.

Why

Tag references like @v4 and @main are mutable. The upstream action owner can repoint a tag at any time, including to malicious code, and every workflow run that consumes the tag will execute it on the next run. SHA pinning is GitHub's recommended mitigation and matches the org-wide hardening already completed in letsdeel/actions-templates under DEVOPS-33945.

Safety

  • Each SHA pinned here is the current target of the tag at the time this PR was opened → functionally a no-op for CI.
  • Renovate / Dependabot, where configured, can keep SHAs updated automatically (pinDigests preset).
  • Rewrite generated with pinact and reviewed.

Ticket

DEVOPS-33945: SHA Pinning for All GitHub Action Tags — Org-wide

@github-actions

github-actions Bot commented May 11, 2026 •

Copy link
Copy Markdown
TestsPassed ☑️SkippedFailed ❌️
Example Pytest Report4 ran2 passed0 skipped2 failed
TestResult
Example Pytest Report
test_sample.test_which_succeeds✅ passed
test_sample.test_which_fails❌ failure
test_sample.test_with_error❌ failure
test_sample.test_with_flaky_success✅ passed

@github-actions

github-actions Bot commented May 11, 2026 •

Copy link
Copy Markdown
TestsPassed ☑️Skipped ⚠️Failed ❌️
Example Ungrouped Test Report | test_10.xml3 ran3 passed0 skipped0 failed
Example Ungrouped Test Report | test_11.xml3 ran2 passed0 skipped1 failed
Example Ungrouped Test Report | test_12.xml3 ran2 passed1 skipped0 failed

@github-actions

github-actions Bot commented May 11, 2026 •

Copy link
Copy Markdown
TestsPassed ✅SkippedFailed
Example Nested JUnit Test Report3 ran3 passed0 skipped0 failed
TestResult
Example Nested JUnit Test Report
ABC-0199: XMPP Ping
PingIntegrationTest.pingAsync (Normal)✅ passed
PingIntegrationTest.pingServer (Normal)✅ passed
ABC-0045: Multi-User Chat
MultiUserIntegrationTest.mucRoleTestForReceivingModerator (Normal)✅ passed

@vinayak-singh-deel
vinayak-singh-deel force-pushed the DEVOPS-33945/pin-external-action-shas branch from 9706834 to 5399b33 Compare May 11, 2026 12:57
@vinayak-singh-deel
vinayak-singh-deel marked this pull request as ready for review May 12, 2026 08:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant