Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pvf-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- name: Get cross-repo dispatch token from Vault

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Security: Sibling step in same job still on mutable @master ref

This PR fixes the ref in the secrets step (verified: SonarSource/vault-action-wrapper publishes unprefixed tags — refs/tags/3.7.0 exists, v3.7.0 does not, and v3 is a branch — so the previous @v3.7.0 could not resolve and the job failed at step 1). The pinning is incomplete for this workflow, though: the next step in the same job still uses SonarSource/core-languages-tooling-public/pvf-trigger@master, a mutable branch of another repo, and it receives the Vault DISPATCH_TOKEN (actions:write on SonarSource/peachee-js) via its dispatch-token input, which the composite action exports into a run: shell step. Any push to that branch changes what executes with that token in an issue_comment-triggered workflow, with no review on this side; pin it to a tag or full commit SHA like the vault step.

Was this helpful? React with 👍 / 👎

id: secrets
uses: SonarSource/vault-action-wrapper@v3.7.0
uses: SonarSource/vault-action-wrapper@3.7.0
with:
secrets: |
development/github/token/{REPO_OWNER_NAME_DASH}-pvf-dispatch token | DISPATCH_TOKEN;
Expand Down