Skip to content

ci: pin GitHub actions to full commit SHAs - #21

Merged
ogorzalka merged 1 commit into
mainfrom
chore/pin-actions
Nov 27, 2026
Merged

ogorzalka merged 1 commit into
mainfrom
chore/pin-actions

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Supply-chain hardening: the third-party and GitHub actions used by this repository's own workflows are pinned to a full commit SHA, with the version in a comment. A tag can be moved to other code; a commit SHA cannot.

Only uses: lines change (4 line(s) in 1 file(s)).

Previous reference Pinned commit Version Uses
actions/checkout@v6 d23441a48e516b6c34aea4fa41551a30e30af803 v6.1.0 2
ddev/github-action-setup-ddev@v1 fdf2f5c97943bae638f31df6df86f1defa6210c0 v1.12.1 1
shivammathur/setup-php@v2 eb7c497e18156a6bbabfef1d3a82760b9eda3962 2.40.0 1
  • Each floating major tag and the release named in the comment resolve to the same commit today, so the code that runs does not change.
  • References to Pollora/harness reusable workflows stay on their protected release tag.

What this proves

  • Every SHA was resolved with gh api from the tag refs of the named repository (annotated tags dereferenced).
  • Every workflow file still parses as YAML, and the diff touches nothing but uses: lines.

What this does not prove

  • The workflows were not run with these pins before opening this pull request; tag-, release- or schedule-triggered ones are not exercised by it either.
  • composer qa was not run: no source file changes.
  • Actions that the pinned actions or reusable workflows call internally are not controlled by this change, nor are tools downloaded at run time.
  • The repository has no Dependabot or Renovate configuration: the pins will not move until someone bumps them.

@ogorzalka
ogorzalka merged commit 226a81a into main Nov 27, 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