Repository navigation
Update GitHub Actions to latest stable versions - #9673
Conversation
GitHub deprecated the Node.js 20 runtime on Actions runners. Update the actions used by the deploy-docker and deploy-singularity jobs to releases that run on Node.js 24: - actions/checkout@v4 -> @v5 - docker/setup-buildx-action@v3 -> @v4 - docker/login-action@v3 -> @v4 - docker/build-push-action@v5/@v6 -> @v7 Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01Kac8NANJKBypKHFxBiUrHT
Extend the Node.js 20 -> 24 migration to the remaining workflows that still pinned Node.js 20 action releases: - actions/checkout@v4 -> @v6 (matching the repo's other workflows) - docker/login-action@v3 -> @v4 Affected: update_nightly, cppcheck, knime_tests, doc-validate, update_version_numbers, pyopenms-wheels-cibuildwheel. Also bumped containerdeploy checkout @v5 -> @v6 for consistency. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01Kac8NANJKBypKHFxBiUrHT
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-26 12:40:03.318728307 +0000
+++ AUTHORS.new 2026-06-26 12:40:08.600837199 +0000
@@ -25,6 +25,7 @@
- Chris Bielow
- Christian Ehrlich
- Christie Mathews
+ - Claude
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughSeveral GitHub Actions workflows now pin newer major versions of checkout, Docker login/build, and Buildx actions across deployment, wheel build, and validation jobs. ChangesWorkflow action version bumps
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/pyopenms-wheels-cibuildwheel.yml (1)
40-45: 🔒 Security & Privacy | 🟠 MajorAdd
persist-credentials: falseto allactions/checkout@v6steps.None of the jobs perform authenticated git operations (e.g.,
git push,git pull, submodule updates) after checkout. The Windows job explicitly passesGITHUB_TOKENvia environment variables for theghCLI CLI (line 354), and Linux jobs hand off to containers. Disabling credential persistence reduces the attack surface.Applies to:
setup(lines 40–45)build-wheels-linux(line 106)build-wheels-linux-arm(line 186)build-wheels-macos(line 259)build-wheels-windows(line 337)Suggested change
# Example for lines 40, 106, 186, 259, 337: - - uses: actions/checkout@v6 + - uses: actions/checkout@v6 with: + persist-credentials: false [other with options...]🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/pyopenms-wheels-cibuildwheel.yml around lines 40 - 45, All actions/checkout@v6 usages should disable stored Git credentials by adding persist-credentials: false to each checkout step. Update the checkout steps in setup, build-wheels-linux, build-wheels-linux-arm, build-wheels-macos, and build-wheels-windows so they consistently set this option alongside any existing sparse-checkout or other settings.Source: Linters/SAST tools
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/containerdeploy.yml:
- Line 70: Pin every workflow action reference in containerdeploy.yml to an
immutable release SHA instead of floating major tags, updating the
docker/setup-buildx-action, both docker/login-action steps, and all
docker/build-push-action usages to their specific commit pins. Also update the
actions/checkout step to set persist-credentials to false since the workflow
only builds and pushes images; use the existing step names and locations to find
the affected uses entries.
- Around line 78-80: The checkout step in the deploy-docker job is leaving git
credentials persisted by default, which is unnecessary for the later Docker-only
steps. Update the actions/checkout usage to explicitly disable credential
persistence by setting persist-credentials to false alongside the existing
fetch-depth setting, so the GITHUB_TOKEN is not left available in local git
config.
In @.github/workflows/pyopenms-wheels-cibuildwheel.yml:
- Line 40: The GitHub Actions workflow still uses mutable floating tags for
third-party actions, so update every `actions/checkout` and
`docker/login-action` reference in the workflow to the provided release commit
SHAs. Make the replacements consistently across all affected job steps in the
workflow file so the action versions are pinned and cannot drift over time.
---
Outside diff comments:
In @.github/workflows/pyopenms-wheels-cibuildwheel.yml:
- Around line 40-45: All actions/checkout@v6 usages should disable stored Git
credentials by adding persist-credentials: false to each checkout step. Update
the checkout steps in setup, build-wheels-linux, build-wheels-linux-arm,
build-wheels-macos, and build-wheels-windows so they consistently set this
option alongside any existing sparse-checkout or other settings.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 053c2603-ca52-47f2-b520-a97facd28d00
📒 Files selected for processing (7)
.github/workflows/containerdeploy.yml.github/workflows/cppcheck.yml.github/workflows/doc-validate.yml.github/workflows/knime_tests.yml.github/workflows/pyopenms-wheels-cibuildwheel.yml.github/workflows/update_nightly.yml.github/workflows/update_version_numbers.yml
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 1 |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major
🧩 Analysis chain
🏁 Script executed:
cat -n .github/workflows/containerdeploy.ymlRepository: OpenMS/OpenMS
Length of output: 9081
🌐 Web query:
actions/checkout@v6 persist-credentials parameter documentation
💡 Result:
The persist-credentials parameter in actions/checkout (including version v6) determines whether the authentication token or SSH key used for the checkout is configured within the local git repository's configuration [1][2]. Key details include: - Purpose: When set to true (the default), it configures the git credentials in the local repository's git config, which allows subsequent git commands (like git fetch or git push) in your workflow to run authenticated [1][3]. - Behavior in v6: For security, persist-credentials now stores credentials in a separate file under $RUNNER_TEMP instead of writing them directly into.git/config [1][4]. The credentials are automatically removed during the post-job cleanup process [1][3]. - Opt-out: You can disable this behavior by setting persist-credentials to false [1][5]. This is useful if you do not need to run further authenticated git commands and wish to prevent the credentials from being associated with the workspace [1]. - Default: The parameter defaults to true [2][6]. For most workflows, keeping the default is recommended to ensure that git operations triggered later in the job remain authenticated [1][3].
Citations:
- 1: https://github.com/actions/checkout/tree/v6.0.2?tab=readme-ov-file
- 2: https://github.com/actions/checkout/blob/72f2cec99f417b1a1c5e2e88945068983b7965f9/action.yml
- 3: https://github.com/actions/checkout
- 4: https://github.com/actions/checkout/?tab=readme-ov-file
- 5: https://github.com/actions/checkout/blob/main/README.md
- 6: https://github.com/actions/checkout/tree/v6.0.2
Disable persist-credentials for the checkout step.
No subsequent steps in the deploy-docker job require authenticated git access; all later operations are Docker builds and registry pushes. Leaving persist-credentials set to the default (true) unnecessarily exposes the GITHUB_TOKEN to any process accessing the local git config. Set persist-credentials: false to reduce the secret's scope.
Suggested change
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
+ persist-credentials: false📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false |
🧰 Tools
🪛 zizmor (1.26.1)
[warning] 77-80: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 78-78: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/containerdeploy.yml around lines 78 - 80, The checkout
step in the deploy-docker job is leaving git credentials persisted by default,
which is unnecessary for the later Docker-only steps. Update the
actions/checkout usage to explicitly disable credential persistence by setting
persist-credentials to false alongside the existing fetch-depth setting, so the
GITHUB_TOKEN is not left available in local git config.
Source: Linters/SAST tools
These checkout steps perform no authenticated git operations afterwards (only Docker builds, registry logins via GITHUB_TOKEN env, and gh release downloads), so persisting the token in the workspace is unnecessary. Disabling it reduces the secret's scope, as flagged by static analysis. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01Kac8NANJKBypKHFxBiUrHT
Documents four PRs that landed on 2026-06-26 after the last CHANGELOG update (#9667): - #9668: fix platform-dependent float formatting in scientific notation - #9669: feat(PIPECHO) cap SVM training-set size (max_training_points) - #9670: fix SimpleSVM constant-predictor crashes in predict()/setup() - #9672: perf PeptideAndProteinQuant O(1) sample-ID lookup (fixes IsobaricWorkflow hang) GitHub Actions version bump (#9673) carries no CHANGELOG entry per the PR author's own checklist. Claude-Session: https://claude.ai/code/session_01JxivySW6RCM1tKbU8H6bfj Co-authored-by: Claude <[email protected]>
Description
This PR updates GitHub Actions workflow dependencies to their latest stable versions across all CI/CD pipelines:
actions/checkout: v4 → v6docker/setup-buildx-action: v3 → v4docker/login-action: v3 → v4docker/build-push-action: v5/v6 → v7These updates ensure the workflows use the latest features, security patches, and performance improvements from the GitHub Actions ecosystem.
Changes
Updated the following workflow files:
.github/workflows/containerdeploy.yml.github/workflows/pyopenms-wheels-cibuildwheel.yml.github/workflows/cppcheck.yml.github/workflows/doc-validate.yml.github/workflows/knime_tests.yml.github/workflows/update_nightly.yml.github/workflows/update_version_numbers.ymlChecklist
Testing
CI/CD pipelines will validate these updates on the next workflow run. The updated actions are backward compatible with existing workflow configurations.
https://claude.ai/code/session_01Kac8NANJKBypKHFxBiUrHT
Summary by CodeRabbit