-
Notifications
You must be signed in to change notification settings - Fork 10
chore(deps): update github-actions #201
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 |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ jobs: | |
| # push release tag | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| fetch-depth: 0 | ||
| ref: ${{ inputs.commit }} | ||
|
Comment on lines
+29
to
32
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify checkout credential persistence posture and push usage in workflows.
rg -n -C2 'uses:\s*actions/checkout@' .github/workflows
rg -n -C2 'persist-credentials:\s*false' .github/workflows
rg -n -C2 'git push|git tag' .github/workflowsRepository: rstackjs/rspack-resolver Length of output: 1491 🏁 Script executed: #!/bin/bash
set -euo pipefail
sed -n '1,140p' .github/workflows/release-plz.yml | nl -baRepository: rstackjs/rspack-resolver Length of output: 111 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Also inspect other workflow occurrences of the same pinned checkout SHA for context
rg -n "uses:\s*actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10" .github/workflows -nRepository: rstackjs/rspack-resolver Length of output: 425 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "=== release-plz.yml (lines 1-120) with line numbers via cat -n ==="
cat -n .github/workflows/release-plz.yml | sed -n '1,120p'
echo "=== persist-credentials occurrences ==="
rg -n "persist-credentials" .github/workflowsRepository: rstackjs/rspack-resolver Length of output: 2486 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Focus on the pinned checkout usage in release-plz.yml
rg -n "release-plz\.yml|actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10" .github/workflows/release-plz.yml || true
# Show the exact job/steps around the checkout and push
rg -n -C3 "name: Checkout|uses:\s*actions/checkout|git tag v\$version|git push" .github/workflows/release-plz.ymlRepository: rstackjs/rspack-resolver Length of output: 588 🌐 Web query:
💡 Result: For actions/checkout v6, the input persist-credentials has no explicit default value; it’s defined as Citations:
🏁 Script executed: #!/bin/bash
set -euo pipefail
rg -n "GITHUB_TOKEN|secrets\.GITHUB_TOKEN|persist-credentials" .github/workflows/release-plz.yml .github/workflowsRepository: rstackjs/rspack-resolver Length of output: 50 Reduce checkout credential persistence in release-plz.yml (lines 29-32, 54-63). Suggested hardening diff- - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
ref: ${{ inputs.commit }}
+ persist-credentials: false
@@
- name: Push tag
run: |
version=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "rspack_resolver") | .version')
echo tagging v$version
git config --global --add safe.directory /github/workspace
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]`@users.noreply.github.com`"
git status
git tag v$version -m v$version
- git push origin v$version
+ git push https://x-access-token:${GITHUB_TOKEN}`@github.com/`${GITHUB_REPOSITORY}.git v$version
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}🧰 Tools🪛 zizmor (1.25.2)[warning] 29-32: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.