Skip to content

Bump actions/checkout from 4 to 7#84

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/actions/checkout-7
Open

Bump actions/checkout from 4 to 7#84
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/actions/checkout-7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 24, 2026

Copy link
Copy Markdown
Contributor

Bumps actions/checkout from 4 to 7.

Release notes

Sourced from actions/checkout's releases.

v7.0.0

What's Changed

New Contributors

Full Changelog: actions/checkout@v6.0.3...v7.0.0

v6.0.3

What's Changed

New Contributors

Full Changelog: actions/checkout@v6...v6.0.3

v6.0.2

What's Changed

Full Changelog: actions/checkout@v6.0.1...v6.0.2

v6.0.1

What's Changed

Full Changelog: actions/checkout@v6...v6.0.1

v6.0.0

What's Changed

... (truncated)

Changelog

Sourced from actions/checkout's changelog.

Changelog

v7.0.0

v6.0.3

v6.0.2

v6.0.1

v6.0.0

v5.0.1

v5.0.0

v4.3.1

v4.3.0

v4.2.2

v4.2.1

... (truncated)

Commits

Summary by CodeRabbit

  • Chores
    • Updated the repository checkout step in two automation workflows to a newer version.
    • No user-facing behavior or validation logic was changed.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jun 24, 2026
@openshift-ci openshift-ci Bot requested review from jfrazierRedHat and ravitri June 24, 2026 04:11
@openshift-ci

openshift-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dependabot[bot]
Once this PR has been reviewed and has the lgtm label, please assign tiwillia for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: openshift-online/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: d844ef7d-f6d5-436d-a05e-45412c849035

📥 Commits

Reviewing files that changed from the base of the PR and between 626f195 and e571ace.

📒 Files selected for processing (2)
  • .github/workflows/branch-protection-check.yml
  • .github/workflows/dependabot-auto-merge.yml

Walkthrough

Three actions/checkout steps across two GitHub Actions workflow files are updated from @v4 to @v7.

Changes

Workflow checkout version updates

Layer / File(s) Summary
Checkout version updates
.github/workflows/branch-protection-check.yml, .github/workflows/dependabot-auto-merge.yml
The verify-dependabot-config, verify-workflows, and auto-merge jobs now use actions/checkout@v7.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 11
✅ Passed checks (11 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: upgrading actions/checkout from v4 to v7.
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.
No-Weak-Crypto ✅ Passed Only checkout version bumps in two workflow files; no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB, custom crypto, or secret comparisons found.
Container-Privileges ✅ Passed The PR only bumps actions/checkout refs; the changed workflows contain no privileged/hostPID/allowPrivilegeEscalation/root settings, and repo scan found none.
No-Sensitive-Data-In-Logs ✅ Passed The changed workflows only log branch-protection/status metadata and Dependabot update info; no passwords, tokens, PII, or customer data are echoed.
No-Hardcoded-Secrets ✅ Passed Only checkout versions changed; changed workflow files contain no hardcoded secret literals or embedded credentials, just secret references.
No-Injection-Vectors ✅ Passed Only action version bumps; scans of the modified workflows found no eval/exec, yaml.load, pickle.loads, os.system, or unsafe HTML sinks.
Ai-Attribution ✅ Passed No AI-tool usage was mentioned in the PR or commit trailers; the only trailer present is Dependabot’s Signed-off-by, so no AI attribution issue.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/github_actions/actions/checkout-7

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 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/branch-protection-check.yml:
- Line 18: Replace the mutable tag reference in the uses field for
actions/checkout from `@v7` to a full commit SHA (a 40-character hash) to ensure
reproducibility and prevent supply-chain attacks. Additionally, add a with
section to the actions/checkout action that includes persist-credentials set to
false to disable default credential persistence and minimize GITHUB_TOKEN
exposure. Apply this same fix to both occurrences at line 18 and line 40 in the
workflow file.

In @.github/workflows/dependabot-auto-merge.yml:
- Line 19: The actions/checkout step currently uses a mutable tag reference
(`@v7`) and does not disable credential persistence, which creates security risks.
Replace the `uses: actions/checkout@v7` reference with a pinned SHA version of
the checkout action and add a `with:` section that sets `persist-credentials:
false` to follow least privilege principles and ensure the workflow uses a
specific, immutable version of the action.
🪄 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: Repository: openshift-online/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 1a535919-fb29-44b5-8c7c-fc2113c50f4b

📥 Commits

Reviewing files that changed from the base of the PR and between f623c4b and 626f195.

📒 Files selected for processing (2)
  • .github/workflows/branch-protection-check.yml
  • .github/workflows/dependabot-auto-merge.yml

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Pin actions/checkout to a full commit SHA and disable credential persistence.

Line 18 and Line 40 use a mutable tag (@v7) and keep default credential persistence. This violates workflow security hardening and increases supply-chain/token exposure risk.

🔒 Suggested fix
       - name: Checkout code
-        uses: actions/checkout@v7
+        uses: actions/checkout@<full-length-commit-sha-for-v7>
+        with:
+          persist-credentials: false
...
       - name: Checkout code
-        uses: actions/checkout@v7
+        uses: actions/checkout@<full-length-commit-sha-for-v7>
+        with:
+          persist-credentials: false

As per path instructions, ".github/workflows/**/*: Pin actions by full SHA, not tag" and "Least privilege: minimize GITHUB_TOKEN permissions."

Also applies to: 40-40

🧰 Tools
🪛 zizmor (1.26.1)

[warning] 17-18: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[error] 18-18: 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/branch-protection-check.yml at line 18, Replace the
mutable tag reference in the uses field for actions/checkout from `@v7` to a full
commit SHA (a 40-character hash) to ensure reproducibility and prevent
supply-chain attacks. Additionally, add a with section to the actions/checkout
action that includes persist-credentials set to false to disable default
credential persistence and minimize GITHUB_TOKEN exposure. Apply this same fix
to both occurrences at line 18 and line 40 in the workflow file.

Sources: Path instructions, Linters/SAST tools

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Harden checkout step: pin by SHA and set persist-credentials: false.

Line 19 currently references actions/checkout via mutable tag (@v7) and leaves credential persistence enabled.

🔒 Suggested fix
       - name: Checkout code
-        uses: actions/checkout@v7
+        uses: actions/checkout@<full-length-commit-sha-for-v7>
+        with:
+          persist-credentials: false

As per path instructions, ".github/workflows/**/*: Pin actions by full SHA, not tag" and "Least privilege: minimize GITHUB_TOKEN permissions."

🧰 Tools
🪛 zizmor (1.26.1)

[warning] 18-19: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[error] 19-19: 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/dependabot-auto-merge.yml at line 19, The actions/checkout
step currently uses a mutable tag reference (`@v7`) and does not disable
credential persistence, which creates security risks. Replace the `uses:
actions/checkout@v7` reference with a pinned SHA version of the checkout action
and add a `with:` section that sets `persist-credentials: false` to follow least
privilege principles and ensure the workflow uses a specific, immutable version
of the action.

Sources: Path instructions, Linters/SAST tools

@openshift-ci

openshift-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

@dependabot[bot]: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocm-fvt-rosa-hcp-staging-ocm-fvt-periodic-cs-sanity-jira-staging-main 626f195 link true /test ocm-fvt-rosa-hcp-staging-ocm-fvt-periodic-cs-sanity-jira-staging-main

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/github_actions/actions/checkout-7 branch from 626f195 to e571ace Compare June 30, 2026 17:34
@github-actions

Copy link
Copy Markdown

Major Version Update Detected

This PR contains a major version update that requires manual review:

  • Dependency: actions/checkout
  • Previous version: 4
  • New version: 7

Please review the changelog and breaking changes before merging.

Auto-merge has been disabled for this PR.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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/dependabot-auto-merge.yml:
- Around line 24-28: The Fetch Dependabot Metadata step in the workflow is using
a mutable action ref, so update the uses value in the metadata step of the
dependabot/fetch-metadata action to a full commit SHA instead of `@v2`. Keep the
existing step name, id, and github-token input unchanged, and make sure the
workflow follows the pinned-actions rule for .github/workflows/**/*.
🪄 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: Repository: openshift-online/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: d844ef7d-f6d5-436d-a05e-45412c849035

📥 Commits

Reviewing files that changed from the base of the PR and between 626f195 and e571ace.

📒 Files selected for processing (2)
  • .github/workflows/branch-protection-check.yml
  • .github/workflows/dependabot-auto-merge.yml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 1

🤖 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/dependabot-auto-merge.yml:
- Around line 24-28: The Fetch Dependabot Metadata step in the workflow is using
a mutable action ref, so update the uses value in the metadata step of the
dependabot/fetch-metadata action to a full commit SHA instead of `@v2`. Keep the
existing step name, id, and github-token input unchanged, and make sure the
workflow follows the pinned-actions rule for .github/workflows/**/*.
🪄 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: Repository: openshift-online/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: d844ef7d-f6d5-436d-a05e-45412c849035

📥 Commits

Reviewing files that changed from the base of the PR and between 626f195 and e571ace.

📒 Files selected for processing (2)
  • .github/workflows/branch-protection-check.yml
  • .github/workflows/dependabot-auto-merge.yml
🛑 Comments failed to post (1)
.github/workflows/dependabot-auto-merge.yml (1)

24-28: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Pin dependabot/fetch-metadata to a full commit SHA.

@v2 is still a mutable ref, so this step does not meet the workflow hardening rule for pinned actions. As per path instructions, ".github/workflows/**/*: Pin actions by full SHA, not tag".

🔒 Minimal hardening diff
       - name: Fetch Dependabot Metadata
         id: metadata
-        uses: dependabot/fetch-metadata@v2
+        uses: dependabot/fetch-metadata@<full-length-commit-sha-for-v2>
         with:
           github-token: "${{ secrets.GITHUB_TOKEN }}"
📝 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.

      - name: Fetch Dependabot Metadata
        id: metadata
        uses: dependabot/fetch-metadata@<full-length-commit-sha-for-v2>
        with:
          github-token: "${{ secrets.GITHUB_TOKEN }}"
🤖 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/dependabot-auto-merge.yml around lines 24 - 28, The Fetch
Dependabot Metadata step in the workflow is using a mutable action ref, so
update the uses value in the metadata step of the dependabot/fetch-metadata
action to a full commit SHA instead of `@v2`. Keep the existing step name, id, and
github-token input unchanged, and make sure the workflow follows the
pinned-actions rule for .github/workflows/**/*.

Source: Path instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants