Skip to content

fix(ci): pin GitHub Actions to immutable commit SHAs - #85

Merged
vitormattos merged 3 commits into
mainfrom
fix/ci-pin-action-references
Oct 22, 2026
Merged

vitormattos merged 3 commits into
mainfrom
fix/ci-pin-action-references

Conversation

@vitormattos

@vitormattos vitormattos commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Pin 21 mutable GitHub Actions/reusable-workflow references to verified 40-character commit SHAs with version comments.
  • Use a Bats test in the existing CI suite to reject unpinned references, without adding Python.
  • Keep Dependabot responsible for Actions updates; Renovate continues managing Nextcloud image digests and Trivy.

Validation

  • 13 distinct SHA/version pairs verified against upstream Git tags.
  • 25 Bats CI tests, 5 development tests, Actionlint and scan-wrapper tests passed locally.
  • Negative tests confirm mutable tags and missing version comments are rejected.

The NCDD workflow example pins a main snapshot and must be refreshed when its upstream workflow changes.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit b2639e4 into main Oct 22, 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