Skip to content

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
hugh/renovate-app-token-workflow
Open

fix(workflows): pin create-github-app-token to SHA v3.1.1 (PRI-864)#154
privilegedescalation-engineer[bot] wants to merge 2 commits intomainfrom
hugh/renovate-app-token-workflow

Conversation

@privilegedescalation-engineer
Copy link
Copy Markdown
Contributor

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

  • Pin to v3.1.1 SHA instead of floating tag
  • Add explicit secrets inputs (, ) so the workflow can be called without inheriting secrets from the caller scope
  • Add permissions for the minimal scope required

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

  • Fixes PRI-864: Fix plugin-app-token workflow: pin action SHA + scope token
  • Closes PR #126 (supersedes the original PR)

cc @cpfarhood

cpfarhood and others added 2 commits May 4, 2026 06:56
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant