-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ci: update GitHub Actions to latest versions #7235
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
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 |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
|
|
@@ -49,7 +49,7 @@ jobs: | |
| needs rebase | ||
|
|
||
| - name: comment | ||
| uses: mshick/add-pr-comment@v2 | ||
| uses: mshick/add-pr-comment@v3 | ||
| if: failure() | ||
|
Comment on lines
51
to
53
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
set -euo pipefail
python - <<'PY'
import pathlib, re
wf_dir = pathlib.Path(".github/workflows")
for wf in sorted(wf_dir.glob("*.yml")):
text = wf.read_text()
if "pull_request_target" not in text:
continue
print(f"\n## {wf}")
for m in re.finditer(r'^\s*uses:\s*([^\s]+)\s*$', text, flags=re.M):
uses = m.group(1)
if uses.startswith("./") or uses.startswith("docker://"):
continue
line = text[:m.start()].count("\n") + 1
pinned = bool(re.search(r'@[0-9a-fA-F]{40}$', uses))
status = "SHA_PINNED" if pinned else "TAG_PINNED"
print(f"{status}\tLine {line}\t{uses}")
PYRepository: dashpay/dash Length of output: 1200 🏁 Script executed: cat -n .github/workflows/merge-check.yml | head -60Repository: dashpay/dash Length of output: 2010 Pin the third-party comment action to a full commit SHA in this privileged workflow. The workflow uses Suggested hardening - name: comment
uses: mshick/add-pr-comment@v3
+ uses: mshick/add-pr-comment@<full_commit_sha_for_v3>🤖 Prompt for AI Agents |
||
| with: | ||
| message: | | ||
|
|
||
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.
Upgrading this step to
actions/checkout@v6can break CI on self-hosted labels unless the runner fleet is already updated: checkout v6 requires Actions Runnerv2.327.1+, and its release notes also call outv2.329.0+for persisted-credential access in containerized git scenarios. This workflow runs in a container and later performs authenticatedgit fetch, so older blacksmith/custom runners selected byruns-oninputs can fail after this change; either keep v5 until runner minimums are enforced or add an explicit runner-version gate.Useful? React with 👍 / 👎.
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.
v2.329.0 was released in October 2025. Blacksmith should use the latest runners, or at least >v2.329.0
https://github.com/actions/runner/releases/tag/v2.329.0