-
Notifications
You must be signed in to change notification settings - Fork 122
chore(deps): update actions/labeler action to v7 #4407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,7 +22,7 @@ jobs: | |||||
|
|
||||||
| - name: Auto contribution labeler | ||||||
| if: ${{ steps.teamAffiliation.outputs.isTeamMember == 'false' }} | ||||||
| uses: actions/labeler@v5 | ||||||
| uses: actions/labeler@v7 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Semgrep identified an issue in your code: GitHub Actions step More details about thisThe GitHub Actions workflow uses Here's how an attacker could exploit this:
This exact attack happened with To resolve this comment: ✨ Commit fix suggestion
Suggested change
View step-by-step instructions
💬 Ignore this findingReply with Semgrep commands to ignore this finding.
Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by github-actions-mutable-action-tag. Need help with this issue? Consult our appsec team or ask in #help-appsec on Slack. You can view more details about this finding in the Semgrep AppSec Platform. |
||||||
| with: | ||||||
| repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||||||
| configuration-path: .github/opened-pr-contribution-labeler.yml | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semgrep identified an issue in your code:
GitHub Actions step uses mutable
v7tag instead of a pinned commit SHA, enabling attackers who compromise the action to inject malicious code into your workflow.More details about this
The
actions/labeler@v7step uses a mutable version tag (v7) instead of pinning to a specific commit. This allows the maintainers of the labeler action to silently update what code runs in your workflow without your knowledge.Exploit scenario:
actions/labelerrepository or gains access to the GitHub account that publishes releases.v7to point to their compromised version.v7tag, which now contains the attacker's code.secrets.GITHUB_TOKEN, allowing the attacker to steal repository secrets, modify your code, or exfiltrate sensitive data from your repository.This is a supply-chain attack vector—your CI/CD pipeline becomes a weapon against you without any code changes on your end.
To resolve this comment:
✨ Commit fix suggestion
View step-by-step instructions
actions/labeler@v7with a full 40-character commit SHA for the exact release you want to trust, for exampleactions/labeler@<full-commit-sha>.withsettings and only change theusesvalue in that step, so it becomes- uses: actions/labeler@<full-commit-sha>.actions/labelerrelease or tag page forv7, and pin that specific commit instead of the tag name. Pinning to a commit prevents the action owner from silently moving the reference to different code later.💬 Ignore this finding
Reply with Semgrep commands to ignore this finding.
/fp <comment>for false positive/ar <comment>for acceptable risk/other <comment>for all other reasonsAlternatively, triage in Semgrep AppSec Platform to ignore the finding created by github-actions-mutable-action-tag.
Need help with this issue? Consult our appsec team or ask in #help-appsec on Slack.
You can view more details about this finding in the Semgrep AppSec Platform.