chore: Bump crowdin/github-action from 2.17.1 to 3.0.2 - #6402
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [crowdin/github-action](https://github.com/crowdin/github-action) from 2.17.1 to 3.0.2. - [Release notes](https://github.com/crowdin/github-action/releases) - [Commits](crowdin/github-action@v2.17.1...v3.0.2) --- updated-dependencies: - dependency-name: crowdin/github-action dependency-version: 3.0.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
|
|
||
| - name: Download translations | ||
| uses: crowdin/github-action@v2.17.1 | ||
| uses: crowdin/github-action@v3.0.2 |
There was a problem hiding this comment.
Semgrep identified an issue in your code:
The translation workflow runs crowdin/github-action@v3.0.2, whose tag can be silently repointed to attacker-controlled code. A later scheduled or staging-triggered run could expose WEBTEAM_CROWDIN_TOKEN and GITHUB_TOKEN or create a malicious pull request.
More details about this
crowdin/github-action@v3.0.2 uses a mutable Git reference. The owner of crowdin/github-action can silently move the v3.0.2 tag to a new commit, so a future run of the scheduled Download translations job or a push to staging could execute attacker-controlled action code.
A plausible attack is:
- An attacker compromises the Crowdin action repository or its release process and repoints the
v3.0.2tag. - The next workflow run starts the
Download translationsstep and executes the new code without any change to this repository. - That code can read
secrets.WEBTEAM_CROWDIN_TOKENand the workflow'sGITHUB_TOKEN, then use those credentials to access Crowdin, modify repository contents, or create a malicious pull request because this job enablescreate_pull_request: true. - The malicious action can also alter the translation files or exfiltrate credentials before the workflow completes, making the compromise appear to be a normal translation update.
To resolve this comment:
✨ Commit fix suggestion
| uses: crowdin/github-action@v3.0.2 | |
| uses: crowdin/github-action@<VERIFIED_VALUE_REQUIRED> # v3.0.2 |
View step-by-step instructions
- Resolve the exact commit SHA for
crowdin/github-actionreleasev3.0.2from the action’s trusted release history. - Replace the mutable version tag with that 40-character SHA and keep the version as a comment, for example:
uses: crowdin/github-action@<40-character-commit-sha> # v3.0.2 - Pin the
actions/checkout@v6step to its corresponding full 40-character commit SHA as well, using the same format. A commit SHA cannot be silently repointed, unlike a tag or branch.
💬 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 reasons
Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by github-actions-mutable-action-tag.
You can view more details about this finding in the Semgrep AppSec Platform.
Bumps crowdin/github-action from 2.17.1 to 3.0.2.
Release notes
Sourced from crowdin/github-action's releases.
Commits
0d5670fchore: CLI 5.0.271fdb88chore: CLI 5.0.106edd94docs: update the v3 announcement64eab86ci: support v3 in update-main-version workflowe4a6c13feat: v3 release (#315)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)