Skip to content

Update GitHub Actions to latest stable versions - #9673

Merged
timosachsenberg merged 3 commits into
developfrom
claude/nodejs-20-deprecation-docker-nb8bz9
Jun 26, 2026
Merged

timosachsenberg merged 3 commits into
developfrom
claude/nodejs-20-deprecation-docker-nb8bz9

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR updates GitHub Actions workflow dependencies to their latest stable versions across all CI/CD pipelines:

  • actions/checkout: v4 → v6
  • docker/setup-buildx-action: v3 → v4
  • docker/login-action: v3 → v4
  • docker/build-push-action: v5/v6 → v7

These 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.yml

Checklist

  • No code changes required (workflow configuration only)
  • No CHANGELOG entry needed (infrastructure update)
  • No unit tests affected (CI/CD configuration)
  • No Python bindings changes

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

  • Chores
    • Updated multiple automated build and validation workflows to use newer versions of underlying GitHub Actions (including checkout and container build/login actions).
    • Improved maintenance for container deployment and wheel-building CI runs, including updated action version pins used during builds and registry logins.

claude added 2 commits June 26, 2026 12:25
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
@github-actions

Copy link
Copy Markdown
Contributor

@timosachsenberg The following names might be missing from the AUTHORS file:

  • Claude

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

@coderabbitai

coderabbitai Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 940f9729-d6e9-4563-bb7f-0772b775e589

📥 Commits

Reviewing files that changed from the base of the PR and between 65fc2cd and 15bccba.

📒 Files selected for processing (2)
  • .github/workflows/containerdeploy.yml
  • .github/workflows/pyopenms-wheels-cibuildwheel.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/containerdeploy.yml

📝 Walkthrough

Walkthrough

Several GitHub Actions workflows now pin newer major versions of checkout, Docker login/build, and Buildx actions across deployment, wheel build, and validation jobs.

Changes

Workflow action version bumps

Layer / File(s) Summary
Container deploy actions
.github/workflows/containerdeploy.yml
deploy-docker updates buildx, checkout, login, and build-push action versions; deploy-singularity updates its GHCR login action version.
Wheel build actions
.github/workflows/pyopenms-wheels-cibuildwheel.yml
Checkout steps are updated across setup, Linux x64, Linux ARM64, macOS, and Windows jobs, and GHCR login steps are updated in the Linux container build jobs.
Auxiliary checkout bumps
.github/workflows/cppcheck.yml, .github/workflows/doc-validate.yml, .github/workflows/knime_tests.yml, .github/workflows/update_nightly.yml, .github/workflows/update_version_numbers.yml
Each workflow updates its repository checkout step from actions/checkout@v4 to actions/checkout@v6.

Poem

A rabbit twitched its nose and grinned,
at fresh new actions tuned within.
From checkout hops to build-push bright,
the workflows blink in newer light. 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: upgrading GitHub Actions workflow dependencies to newer stable versions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/nodejs-20-deprecation-docker-nb8bz9

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 | 🟠 Major

Add persist-credentials: false to all actions/checkout@v6 steps.

None of the jobs perform authenticated git operations (e.g., git push, git pull, submodule updates) after checkout. The Windows job explicitly passes GITHUB_TOKEN via environment variables for the gh CLI 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

📥 Commits

Reviewing files that changed from the base of the PR and between 7fa141e and 65fc2cd.

📒 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

Comment thread .github/workflows/containerdeploy.yml Resolved
Comment on lines +78 to 80
uses: actions/checkout@v6
with:
fetch-depth: 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cat -n .github/workflows/containerdeploy.yml

Repository: 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:


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.

Suggested change
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
@timosachsenberg
timosachsenberg merged commit 9200a30 into develop Jun 26, 2026
19 checks passed
@timosachsenberg
timosachsenberg deleted the claude/nodejs-20-deprecation-docker-nb8bz9 branch June 26, 2026 14:01
timosachsenberg added a commit that referenced this pull request Jun 27, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants