Skip to content

DEVOPS-33945: pin external action SHAs - #1

Merged
vinayak-singh-deel merged 1 commit into
mainfrom
DEVOPS-33945/pin-external-action-shas
May 12, 2026
Merged

vinayak-singh-deel merged 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

@vinayak-singh-deel
vinayak-singh-deel force-pushed the DEVOPS-33945/pin-external-action-shas branch from 34dcb18 to 523cc38 Compare May 11, 2026 12:57
@vinayak-singh-deel
vinayak-singh-deel marked this pull request as ready for review May 12, 2026 08:22

@rachit-sethiya-deel rachit-sethiya-deel 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.

Approved

@vinayak-singh-deel
vinayak-singh-deel merged commit 13aed5a into main May 12, 2026
13 of 29 checks passed
@vinayak-singh-deel
vinayak-singh-deel deleted the DEVOPS-33945/pin-external-action-shas branch May 12, 2026 14:12
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.

2 participants