GeezerVison is showing github.com — chore: bump GitHub Actions to their current majors (#623) by kalwalt · Pull Request #755 · webarkit/jsartoolkitNFT
Conversation
closes #623
Moves every GitHub Action that is a major version behind to its latest major. I read each release note before changing anything (see the table). The commits follow the order the issue asks for:
- CI and CodeQL;
- the Python build;
main.yml;
- the publish workflows.
Versions
| Action |
Before |
After |
Release notes, as they bear on these workflows |
actions/checkout |
v6 |
v7 |
Refuses to check out fork PRs under pull_request_target and workflow_run. No workflow here uses those triggers. Otherwise moves to ESM. |
actions/setup-node |
v6 |
v7 |
No longer exports a dummy NODE_AUTH_TOKEN when none is set (actions/setup-node#1558). publish.yml uses npm trusted publishing (OIDC) and sets no token, which is the case that PR was written for. Adds cache outputs. |
actions/cache |
v5 |
v6 |
Moves to ESM, with no input or behaviour change. |
actions/upload-artifact (main.yml) |
v6 |
v7 |
Adds direct uploads, but only with archive: false. The default still zips, so the build and dist artifacts are unchanged. publish-python.yml was already on v7. |
EndBug/add-and-commit |
v10 |
v11 |
A hardening release: it rejects git flags that could run code or read runner files, and refuses submodule gitlinks staged by git add. The step adds only build/ and dist/, which contain no gitlinks. |
All five already ran on node24, so the runner requirement does not change.
These were already at their latest major: setup-python v7, download-artifact v8, softprops/action-gh-release v3, github/codeql-action v4 and pypa/gh-action-pypi-publish@release/v1. The issue's note about publish.yml pinning Node 22 is out of date: every workflow now reads .nvmrc.
What this PR's CI exercises, and what it cannot
| Workflow |
Runs on this PR |
First real run |
CI.yml, build-python.yml |
yes |
here |
main.yml (build, upload-artifact) |
yes, on the push |
here |
main.yml, add-and-commit |
no: only on a push to master |
the dev → master merge |
main.yml, action-gh-release |
no: only on a tag |
the next npm release |
codeql.yml |
no: only on master |
the dev → master merge |
publish.yml, publish-python.yml |
no: only on a tag or a manual run |
the next release |
The issue suggests running the publish workflows on a throwaway prerelease tag. They have no rehearsal mode: a tag push to publish.yml publishes to npm for real. The least risky check is to watch the first release run, which fails before publishing if checkout or setup-node breaks. publish-python.yml can be run by hand against TestPyPI (target: testpypi).
Verification
- Only the
uses: lines change: 21 lines in 6 workflow files.
- The six workflow files parse as YAML.
- No other file names these action versions.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
actions/checkout v6 -> v7, actions/setup-node v6 -> v7, actions/cache
v5 -> v6. These two workflows go first because they run on every push
(CodeQL on master), so a break shows at once.
From the release notes, none of the changes touches these workflows:
- checkout v7 refuses fork PR checkouts under pull_request_target and
workflow_run; neither workflow uses those triggers.
- setup-node v7 no longer exports a dummy NODE_AUTH_TOKEN, and adds
cache outputs.
- cache v6 only moves to ESM.
All three already ran on node24, so the runner requirement is unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
actions/checkout v6 -> v7 and actions/cache v5 -> v6, as in CI.yml.
setup-python is already at v7, its latest major. The workflow runs on
every push and pull request, so this PR exercises it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
actions/checkout v6 -> v7, setup-node v6 -> v7, cache v5 -> v6,
upload-artifact v6 -> v7, EndBug/add-and-commit v10 -> v11.
- upload-artifact v7 adds direct (unzipped) uploads behind `archive:
false`; the default still zips, so the build and dist artifacts are
unchanged.
- add-and-commit v11 is a hardening release: it rejects git flags that
could run code or read runner files, and refuses submodule gitlinks
staged by `git add`. The step adds only build/ and dist/, which hold
no gitlinks. It runs only on a push to master, so it is first
exercised after dev is merged.
softprops/action-gh-release stays at v3, its latest major.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…623)
actions/checkout v6 -> v7, setup-node v6 -> v7 (npm), cache v5 -> v6
(PyPI). Last, as the issue asks: these run only on a release tag, so a
break shows after the tag exists.
setup-node v7 stops exporting a dummy NODE_AUTH_TOKEN when none is set
(actions/setup-node#1558). publish.yml uses npm trusted publishing
(OIDC) and sets no token, so npm no longer sees the placeholder; the
setup-node PR names exactly this case. upload-artifact v7 and
download-artifact v8 in publish-python.yml are already at their latest
majors.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Summary by Qodo
Bump GitHub Actions to current major versions
⚙️ Configuration changes 🕐 10-20 Minutes

AI Description
-
• Upgrade action versions across CI, CodeQL, build, and publishing workflows to current majors.
• Preserve existing action inputs, triggers, and artifact settings while updating 21 uses:
references.
• Release-only publishing steps remain untested by this PR and require monitoring on their next
runs.
Diagram
-
graph TD
T["GitHub events"] --> C["Node CI"] --> A["Updated actions"]
T --> P["Python build"] --> A
T --> Q["CodeQL scan"] --> A
T --> B["Build artifacts"] --> A
T --> N["npm publish"] --> A
T --> Y["PyPI publish"] --> A
Loading
High-Level Assessment
-
The following are alternative approaches to this PR:
1. Pin actions to immutable commit SHAs
-
- ➕ Prevents a major-version tag from resolving to changed code later.
- ➕ Improves reproducibility and supply-chain control.
- ➖ Makes upgrades harder to review without tooling that annotates SHAs.
- ➖ Requires a broader repository-wide pinning policy beyond this version refresh.
Recommendation: Keep the major-version references for this PR: they match the existing workflow convention and make the requested upgrades easy to audit. Consider SHA pinning separately as a repository-wide security policy; monitor the first release runs because publishing steps are not exercised here.
Files changed (6) +21 / -21
-
Other (6) +21 / -21
-
CI.ymlRefresh checkout, Node setup, and npm cache actions +3/-3
Refresh checkout, Node setup, and npm cache actions
• Bumps checkout and setup-node from v6 to v7 and cache from v5 to v6 in the Node CI workflow. Test steps and cache configuration are unchanged.
.github/workflows/CI.yml
build-python.ymlRefresh checkout and cache across Python build jobs +7/-7
Refresh checkout and cache across Python build jobs
• Bumps checkout to v7 in the Linux, macOS, and Windows jobs. Bumps pip caches and the Windows vcpkg cache to actions/cache v6 without changing their keys or paths.
.github/workflows/build-python.yml
codeql.ymlUse checkout v7 for CodeQL analysis +1/-1
Use checkout v7 for CodeQL analysis
• Updates the repository checkout action from v6 to v7. CodeQL initialization and analysis remain unchanged.
.github/workflows/codeql.yml
main.ymlRefresh build, artifact, and commit actions +6/-6
Refresh build, artifact, and commit actions
• Bumps checkout, setup-node, cache, and both upload-artifact references to their next majors. The master-only build-file commit step moves to EndBug/add-and-commit v11; its inputs and condition remain unchanged.
.github/workflows/main.yml
publish-python.ymlRefresh Python publishing checkout and Windows cache +2/-2
Refresh Python publishing checkout and Windows cache
• Bumps checkout to v7 for the wheel build and the Windows vcpkg cache to actions/cache v6. Publishing targets and wheel-build settings are unchanged.
.github/workflows/publish-python.yml
publish.ymlRefresh npm publishing checkout and Node setup +2/-2
Refresh npm publishing checkout and Node setup
• Bumps checkout and setup-node from v6 to v7. Tag selection, Node version configuration, and OIDC-based publishing steps remain unchanged.
.github/workflows/publish.yml
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Code Review by Qodo
🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (1) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


1. Release and artifact paths stay unverified 📎 Requirement gap ☼ Reliability
Description
The upgraded main.yml commit step and tag-triggered publish.yml path are not exercised by this
PR. They only run on a push to master or a release tag or manual trigger, so the changed
EndBug/add-and-commit@v11 and actions/setup-node@v7 paths have no validation before relying on
them.
Code
.github/workflows/main.yml[68]
+ uses: EndBug/add-and-commit@v11
Evidence
Compliance ID 2 requires the artifact commit and tag-triggered publishing behavior to be validated.
The PR changes the artifact commit action and publishing workflow action references, while the
supplied PR description states that the commit step only runs on pushes to master, the publish
workflow is not run by this PR, and publishing has no rehearsal mode.
Preserve workflow behavior after Action upgrades
.github/workflows/main.yml[66-70]
.github/workflows/publish.yml[28-46]
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The upgraded artifact-commit and tag-publishing paths are not validated, leaving the changed action versions unverified in the workflows that depend on them.
## Fix Focus Areas
- .github/workflows/main.yml[68-68]
- .github/workflows/publish.yml[29-44]
## Recommended Fix
Exercise the artifact commit workflow on a controlled push to `master` and validate the publishing workflow using the safest available release or manual test path. If real npm publishing cannot be rehearsed safely, document an equivalent pre-publish validation and verify the first release run before relying on the upgraded actions.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Tip of the day
💡 Did you know, you can turn on the rule miner and Qodo learns your standards from review history
More tips ↗ | Customize Qodo ↗ | Qodo docs ↗


|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
- name: Commit changes
|
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
|
|
uses: EndBug/add-and-commit@v10
|
|
|
uses: EndBug/add-and-commit@v11
|
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.

1. Release and artifact paths stay unverified 📎 Requirement gap ☼ Reliability
The upgraded main.yml commit step and tag-triggered publish.yml path are not exercised by this
PR. They only run on a push to master or a release tag or manual trigger, so the changed
EndBug/add-and-commit@v11 and actions/setup-node@v7 paths have no validation before relying on
them.
Agent Prompt
## Issue description
The upgraded artifact-commit and tag-publishing paths are not validated, leaving the changed action versions unverified in the workflows that depend on them.
## Fix Focus Areas
- .github/workflows/main.yml[68-68]
- .github/workflows/publish.yml[29-44]
## Recommended Fix
Exercise the artifact commit workflow on a controlled push to `master` and validate the publishing workflow using the safest available release or manual test path. If real npm publishing cannot be rehearsed safely, document an equivalent pre-publish validation and verify the first release run before relying on the upgraded actions.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|