Skip to content

Pin GitHub Actions to immutable SHAs and enable Dependabot-managed SHA refresh - #5644

Merged
mthalman merged 3 commits into
mainfrom
copilot/pin-github-actions-to-commit-shas
Aug 20, 2026
Merged

Pin GitHub Actions to immutable SHAs and enable Dependabot-managed SHA refresh#5644
mthalman merged 3 commits into
mainfrom
copilot/pin-github-actions-to-commit-shas

Conversation

Copilot AI commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

This PR applies supply-chain hardening to repository workflows by replacing tag-based GitHub Action references with commit SHAs, and adds automated SHA maintenance via Dependabot with a cooldown window.

  • Workflow action pinning

    • Replaced unpinned uses: ...@vX references with 40-char commit SHAs (kept version comments for readability).
    • Updated:
      • .github/workflows/lint-code-base.yml
      • .github/workflows/check-markdown-links.yml
      • .github/workflows/labeler.yml
      • .github/workflows/copilot-setup-steps.yml
  • Dependabot policy for GitHub Actions

    • Added .github/dependabot.yml for github-actions updates at repo root.
    • Configured weekly update cadence with a 7-day cooldown to avoid rapid churn.
  • Resulting pattern

    • Workflows now follow immutable action references, e.g.:
      - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

Co-authored-by: mthalman <15789599+mthalman@users.noreply.github.com>
Copilot AI changed the title [WIP] Pin GitHub Actions to commit SHAs for supply-chain security Pin GitHub Actions to immutable SHAs and enable Dependabot-managed SHA refresh Aug 20, 2026
Copilot AI requested a review from mthalman August 20, 2026 16:21
Comment thread .github/workflows/lint-code-base.yml Outdated
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v6 # https://github.com/github/super-linter
uses: github/super-linter@4e51915f4a812abf59fed160bb14595c0a38a9e7 # v6 # https://github.com/github/super-linter

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.

@copilot Remove the trailing # https://github.com/github/super-linter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in 84ebf73.

Co-authored-by: mthalman <15789599+mthalman@users.noreply.github.com>
Copilot AI requested a review from mthalman August 20, 2026 18:24
@mthalman
mthalman marked this pull request as ready for review August 20, 2026 18:24
@mthalman
mthalman requested a review from a team as a code owner August 20, 2026 18:24
Copilot AI linked an issue Aug 20, 2026 that may be closed by this pull request
@mthalman
mthalman merged commit 16894a4 into main Aug 20, 2026
2 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.

Pin GitHub Actions to commit SHAs

3 participants