Skip to content

ci: pin remaining GitHub Actions to commit SHAs #3638

@Ankitsinghsisodya

Description

@Ankitsinghsisodya

Problem

Multiple workflows reference GitHub Actions using mutable refs: semver tags (e.g. @v4, @v5) and @main for knative/actions. Tags and branch heads can be moved, which complicates supply-chain review and is flagged by many security checklists (e.g. OpenSSF) in favor of full commit SHAs with a human-readable version in a comment.

Expected

  • Every uses: in .github/workflows/ should pin to a 40-char commit SHA, with a trailing comment noting the previous tag (e.g. # v4).

Scope (example)

  • actions/*, docker/*, codecov/*, and other third-party actions currently using tags
  • knative/actions/setup-go@main and knative/actions/.github/workflows/reusable-*.yaml@main — pin to a concrete SHA of the knative/actions repository

/area CI

/assign @Ankitsinghsisodya

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions