Changed pinned version from main to commit sha for actions from https://github.com/cap-java/.github#845
Open
lisajulia wants to merge 1 commit into
Open
Changed pinned version from main to commit sha for actions from https://github.com/cap-java/.github#845lisajulia wants to merge 1 commit into
lisajulia wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
The PR pins all reusable actions and workflows to a specific commit SHA instead of the mutable @main branch ref, which is a good security practice — but the same SHA 296573b55e906f5c77a1855bcfe4285cbbc5cac4 is applied to actions from two entirely separate repositories (cap-java/.github and cap-java/cds-feature-attachments). Since commit SHAs are repository-scoped, this SHA can only be valid in one repo's history, meaning the pins for at least one of the two repos are incorrect and will either resolve to the wrong commit or fail at runtime.
PR Bot Information
Version: 1.21.1
- Correlation ID:
2b85514d-75a9-490b-97fe-e1e873d76a39 - LLM:
anthropic--claude-4.6-sonnet - File Content Strategy: Full file content
- Agent Instructions:
- Event Trigger:
pull_request.opened
Schmarvinius
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pin GitHub Actions to Commit SHA Instead of
mainBranchChore
🔧 Updated all GitHub Actions workflow references from the mutable
@mainbranch tag to a pinned commit SHA (296573b55e906f5c77a1855bcfe4285cbbc5cac4), with#mainretained as a comment for readability. This improves security and reproducibility by ensuring workflows use a specific, immutable version of the shared actions rather than a floating branch reference.Changes
.github/workflows/issue.yml: Pinned reusable workflow reference from@mainto@296573b55e906f5c77a1855bcfe4285cbbc5cac4 #main..github/workflows/main.yml: Pinned references forscan-with-blackduckaction andpipeline.ymlreusable workflow..github/workflows/pipeline.yml: Pinned references forcf-bind,integration-tests,scan-with-sonar, andscan-with-codeqlactions..github/workflows/pr.yml: Pinned references forscan-with-blackduckaction andpipeline.ymlreusable workflow..github/workflows/prevent-issue-labeling.yml: Pinned reusable workflow reference..github/workflows/release.yml: Pinned references forscan-with-blackduck,build, anddeploy-releaseactions..github/workflows/stale.yml: Pinned reusable workflow reference.PR Bot Information
Version:
1.21.12b85514d-75a9-490b-97fe-e1e873d76a39anthropic--claude-4.6-sonnetpull_request.opened