Skip to content

[BUILD]: Add commit hashes to java-tests workflow to pin actions#831

Merged
MacOS merged 3 commits into
SKaiNET-developers:developfrom
MacOS:java-tests-workflow/add-commit-hashes
Jul 16, 2026
Merged

[BUILD]: Add commit hashes to java-tests workflow to pin actions#831
MacOS merged 3 commits into
SKaiNET-developers:developfrom
MacOS:java-tests-workflow/add-commit-hashes

Conversation

@MacOS

@MacOS MacOS commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

This PR pins all actions in the java-tests.yml workflow with their commit hash to increase security (#815 ).

The OpenSSF Score should increase after this PR has been merged.

@MacOS
MacOS requested review from Copilot and michalharakal July 16, 2026 14:41
@MacOS MacOS self-assigned this Jul 16, 2026
@MacOS MacOS added enhancement New feature or request github_actions Pull requests that update GitHub Actions code labels Jul 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens the java-tests GitHub Actions workflow by pinning all referenced third-party actions to immutable commit SHAs (instead of moving tags), aligning with the security goal in Issue #815 and supporting a higher OpenSSF Scorecard result.

Changes:

  • Pin actions/checkout to a specific commit SHA (with tag comment for traceability).
  • Pin actions/setup-java to a specific commit SHA (with tag comment for traceability).
  • Pin actions/upload-artifact to a specific commit SHA (with tag comment for traceability).

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

@michalharakal michalharakal 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.

Thank you @MacOS

@MacOS
MacOS merged commit 58b0bb1 into SKaiNET-developers:develop Jul 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants