Skip to content

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

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

ogorzalka merged 1 commit into
developfrom
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 (9 line(s) in 1 file(s)).

Previous reference Pinned commit Version Uses
actions/checkout@v4 11d5960a326750d5838078e36cf38b85af677262 v4.4.0 4
actions/setup-node@v4 49933ea5288caeca8642d1e84afbd3f7d6820020 v4.4.0 1
actions/upload-artifact@v4 ea165f8d65b6e75b540449e92b4886f43607fa02 v4.6.2 1
ddev/github-action-setup-ddev@v1 fdf2f5c97943bae638f31df6df86f1defa6210c0 v1.12.1 1
shivammathur/setup-php@v2 eb7c497e18156a6bbabfef1d3a82760b9eda3962 2.40.0 2
  • 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.
  • renovate.json exists, but whether Renovate actually runs on this repository was not checked; do not assume the pins will be refreshed.

@ogorzalka
ogorzalka merged commit ece944f into develop Nov 27, 2026
14 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