Skip to content

RATIS-2756. Pin first-party actions to a major version tag - #1657

Merged
adoroszlai merged 1 commit into
apache:masterfrom
adoroszlai:RATIS-2756
Oct 22, 2026
Merged

adoroszlai merged 1 commit into
apache:masterfrom
adoroszlai:RATIS-2756

Conversation

@adoroszlai

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

The GitHub Actions Policy requires a specific git hash only for external actions; actions in the apache/*, github/* and actions/* namespaces may be used without that restriction. Pinning those to a major version tag rather than to a hash lets a patch or minor release arrive without a pull request, which removes a large share of the Dependabot traffic a project sees. External actions still MUST be pinned to a specific git hash. (source)

  • This PR updates workflows to pin actions/* and apache/* by major version instead of SHA, as recommended by Apache Infra above. github/* actions are not used here.
  • Configure zizmor to allow such pinning.
  • Make sure zizmor workflow is triggered by changes in zizmor config.

https://issues.apache.org/jira/browse/RATIS-2756

How was this patch tested?

Verified that external actions are still pinned by SHA:

$ rg 'uses: ' .github/workflows | grep -v 'uses: \(actions\|apache\|$/\)'
.github/workflows/zizmor.yaml:      uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4

And that no first-party actions use SHA:

$ rg 'uses: (actions|apache)' .github/workflows | grep -c '# v'
0

CI: https://github.com/adoroszlai/ratis/actions/runs/39737007311
allowlist-check: https://github.com/adoroszlai/ratis/actions/runs/39737007348
zizmor: https://github.com/adoroszlai/ratis/actions/runs/39737007392

@adoroszlai adoroszlai added the CI label Oct 22, 2026
@adoroszlai adoroszlai self-assigned this Oct 22, 2026

@szetszwo szetszwo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 the change looks good.

@adoroszlai
adoroszlai merged commit a1bb0e3 into apache:master Oct 22, 2026
18 checks passed
@adoroszlai

Copy link
Copy Markdown
Contributor Author

Thanks @szetszwo for the review.

@adoroszlai
adoroszlai deleted the RATIS-2756 branch October 22, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants