Skip to content

SOLR-18192: Pin all GitHub Actions to full commit SHAs as per ASF policy#4288

Merged
janhoy merged 1 commit intoapache:mainfrom
janhoy:SOLR-18192-pin-github-action-versions
Apr 18, 2026
Merged

SOLR-18192: Pin all GitHub Actions to full commit SHAs as per ASF policy#4288
janhoy merged 1 commit intoapache:mainfrom
janhoy:SOLR-18192-pin-github-action-versions

Conversation

@janhoy
Copy link
Copy Markdown
Contributor

@janhoy janhoy commented Apr 16, 2026

https://issues.apache.org/jira/browse/SOLR-18192

Failing jobs due to new policy: https://github.com/apache/solr/actions/workflows/docker-nightly.yml

Solved with assistance from LLM.
Dependabot or solrbot will now suggest upgrades including SHA

@janhoy
Copy link
Copy Markdown
Contributor Author

janhoy commented Apr 16, 2026

@igiguere

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Solr’s GitHub Actions workflows to comply with ASF policy by pinning third-party actions to immutable full commit SHAs (instead of floating tags), reducing the risk of unexpected CI breakages from upstream tag changes.

Changes:

  • Replace uses: ...@vX (and similar floating refs) with uses: ...@<full-commit-sha> across workflows.
  • Add inline version comments (e.g., # v5.0.1) to preserve human-readable intent while keeping immutable pins.
  • Apply the same pinning approach to the shared composite action used by multiple workflows.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/validate-changelog.yml Pin actions/checkout to a full commit SHA.
.github/workflows/stale.yml Pin actions/stale to a full commit SHA.
.github/workflows/solrj-test.yml Pin actions/checkout to a full commit SHA.
.github/workflows/renovate-changelog.yml Pin actions/checkout and actions/setup-python to full commit SHAs.
.github/workflows/labeler.yml Pin actions/labeler to a full commit SHA.
.github/workflows/gradle-precommit.yml Pin actions/checkout to a full commit SHA.
.github/workflows/gradle-extraction-check.yml Pin actions/checkout to a full commit SHA.
.github/workflows/docker-test.yml Pin actions/checkout to a full commit SHA.
.github/workflows/docker-nightly.yml Pin actions/checkout, actions/setup-java, actions/cache, and Docker actions to full commit SHAs.
.github/workflows/dependency-graph-submission.yml Pin actions/checkout, actions/setup-java, and Gradle dependency submission action to full commit SHAs.
.github/workflows/bin-solr-test.yml Pin actions/checkout and actions/upload-artifact to full commit SHAs.
.github/actions/prepare-for-build/action.yml Pin actions/cache to a full commit SHA within the shared composite action.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@janhoy janhoy requested a review from gerlowskija April 16, 2026 21:03
@janhoy janhoy merged commit 576d2ea into apache:main Apr 18, 2026
11 of 14 checks passed
@janhoy janhoy deleted the SOLR-18192-pin-github-action-versions branch April 18, 2026 15:44
janhoy added a commit that referenced this pull request Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants