Skip to content

chore(deps): update actions/checkout action to v7 - #337

Open
red-hat-konflux[bot] wants to merge 1 commit into
masterfrom
konflux/mintmaker/master/actions-checkout-7.x
Open

chore(deps): update actions/checkout action to v7#337
red-hat-konflux[bot] wants to merge 1 commit into
masterfrom
konflux/mintmaker/master/actions-checkout-7.x

Conversation

@red-hat-konflux

@red-hat-konflux red-hat-konflux Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
actions/checkout action major v4v7

Release Notes

actions/checkout (actions/checkout)

v7.0.1

Compare Source

v7.0.0

Compare Source

v7

Compare Source

v6.1.0

Compare Source

What's Changed

https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/ for more details about this breaking change

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

v6.0.3

Compare Source

v6.0.2

Compare Source

v6.0.1

Compare Source

v6.0.0

Compare Source

v6

Compare Source

v5.1.0

Compare Source

What's Changed

https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/ for more details about this breaking change

Full Changelog: actions/checkout@v5.0.1...v5.1.0

v5.0.1

Compare Source

v5.0.0

Compare Source

v5

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown

Walkthrough

The GitHub Actions workflow file updates actions/checkout from @v4 to @v7 in three jobs: install, test-component, and test-storybook. No other workflow logic, commands, or configuration is changed.

Changes

CI Checkout Version Bump

Layer / File(s) Summary
Update actions/checkout to v7 in all jobs
.github/workflows/test.yml
The install, test-component, and test-storybook jobs each have their checkout step updated from actions/checkout@v4 to actions/checkout@v7.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description omits the required template sections and issue link; it only lists the dependency bump and release notes. Add the Description, linked RHCLOUD ticket, Anything reviewers should know?, Checklist, and AI disclosure sections; remove Screenshots since this is a non-visual change.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title is concise and accurately describes the main change: upgrading actions/checkout from v4 to v7.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch konflux/mintmaker/master/actions-checkout-7.x

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.

🧹 Nitpick comments (1)
.github/workflows/test.yml (1)

15-15: Explicitly disable credential persistence in checkout actions for improved security.

The checkout action uses a floating version tag (@v7) which is acceptable as v7 is the current stable version. However, the workflow does not require Git credentials since there are no authenticated git operations (push, commit, etc.), so you can safely disable credential persistence:

Add persist-credentials: false to all three checkout steps (lines 15, 41, 82):

Update checkout steps
      - name: Checkout
        uses: actions/checkout@v7
+       with:
+         persist-credentials: false

This prevents Git credentials from being stored in the runner's Git config, reducing the risk of accidental credential exposure in logs or cached artifacts.

🤖 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/test.yml at line 15, Add the `persist-credentials: false`
parameter to all three checkout action configurations (the actions/checkout@v7
steps) in the workflow file to disable Git credential persistence. This
parameter should be added as a property under the `with` section of each
checkout step to prevent Git credentials from being stored in the runner's Git
config, which improves security by reducing the risk of accidental credential
exposure.

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.

Nitpick comments:
In @.github/workflows/test.yml:
- Line 15: Add the `persist-credentials: false` parameter to all three checkout
action configurations (the actions/checkout@v7 steps) in the workflow file to
disable Git credential persistence. This parameter should be added as a property
under the `with` section of each checkout step to prevent Git credentials from
being stored in the runner's Git config, which improves security by reducing the
risk of accidental credential exposure.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: fe1329c8-610d-4238-b0cd-e5d73e3a9742

📥 Commits

Reviewing files that changed from the base of the PR and between 87d44df and fd2c8e7.

📒 Files selected for processing (1)
  • .github/workflows/test.yml

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.

0 participants