fix(workflows): pin create-github-app-token to SHA v3.1.1 (PRI-864)#154
Open
privilegedescalation-engineer[bot] wants to merge 2 commits intomainfrom
Open
fix(workflows): pin create-github-app-token to SHA v3.1.1 (PRI-864)#154privilegedescalation-engineer[bot] wants to merge 2 commits intomainfrom
privilegedescalation-engineer[bot] wants to merge 2 commits intomainfrom
Conversation
Adds a workflow_call reusable workflow that provides a GitHub App token for use by Mend Renovate to push commits to plugin repos. Refs: PRI-413
Pin actions/create-github-app-token@v3 to the v3.1.1 tag SHA (1b10c78c7865c340bc4f6099eb2f838309f1e8c3) instead of the floating @V3 tag. This prevents supply-chain attacks where a compromised @V3 tag could inject malicious code into every workflow run. Changes: - Pin to v3.1.1 SHA instead of floating @V3 tag - Add explicit secrets inputs (RELEASE_APP_ID, RELEASE_APP_PRIVATE_KEY) so the workflow can be called without inheriting secrets from the caller scope - Add 'contents: read' permissions for the minimal scope required This resolves PRI-864: Fix plugin-app-token workflow. Co-Authored-By: Paperclip <noreply@paperclip.ing>
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.
Summary
Pin to the v3.1.1 tag SHA () instead of the floating tag. This prevents supply-chain attacks where a compromised tag could inject malicious code into every workflow run.
Changes
Why this matters
The original used which is a floating tag. If the tag is ever compromised, every workflow that uses it would run malicious code. Pinning to an explicit SHA (v3.1.1 = ) ensures the action binary never changes without a new SHA.
PR context
cc @cpfarhood