Skip to content

chore(deps): bump actions/checkout from 4 to 7 - #22

Merged
athal7 merged 1 commit into
mainfrom
dependabot/github_actions/actions/checkout-7
Jul 17, 2026
Merged

chore(deps): bump actions/checkout from 4 to 7#22
athal7 merged 1 commit into
mainfrom
dependabot/github_actions/actions/checkout-7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 16, 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 automated build and validation workflow to use the latest checkout tooling.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jul 16, 2026
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The CI workflow updates its repository checkout action from actions/checkout@v4 to actions/checkout@v7; no other workflow logic changes.

Changes

CI checkout update

Layer / File(s) Summary
Update checkout action
.github/workflows/ci.yml
The checkout step now uses actions/checkout@v7 instead of actions/checkout@v4.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

  • athal7/kb#23: Updates another GitHub Actions version in the same CI workflow.

Suggested reviewers: athal7

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches 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 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
Contributor

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/ci.yml:
- Line 10: Update the actions/checkout step to set persist-credentials to false,
ensuring the existing uv sync --dev and uv run pytest workflow steps remain
unchanged.
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 841295b5-3462-45ef-a33e-eb387bbd7665

📥 Commits

Reviewing files that changed from the base of the PR and between 6658cac and 165f85f.

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

Comment thread .github/workflows/ci.yml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

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 | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

git ls-files .github/workflows/ci.yml
echo '---'
cat -n .github/workflows/ci.yml

Repository: athal7/kb

Length of output: 501


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Show the workflow and any Git-auth-related steps nearby.
awk 'NR>=1 && NR<=200 {print NR ":" $0}' .github/workflows/ci.yml

echo '--- searches ---'
rg -n "git (push|fetch|pull|clone|submodule)|persist-credentials|checkout@" .github/workflows/ci.yml .github -g '*.yml' -g '*.yaml'

Repository: athal7/kb

Length of output: 552


🌐 Web query:

actions/checkout v7 persist-credentials default README release tags

💡 Result:

In actions/checkout v7, the default value for the persist-credentials input remains true [1][2]. When persist-credentials is set to its default (true), the action configures the provided authentication token or SSH key within the local git configuration [1][3]. This allows subsequent git commands executed within your workflow scripts to run with the same authentication credentials [4][5]. The token is removed during the post-job cleanup process to ensure security [1][4]. If you wish to disable this behavior, you can explicitly set persist-credentials to false in your workflow file [1][3]. While the v7 release introduced security hardening—such as refusing to fetch fork pull request code in certain contexts by default (which can be opted out of using the allow-unsafe-pr-checkout input) [6]—the fundamental functionality and default behavior of the persist-credentials input were not changed in this release [2][7].

Citations:


🌐 Web query:

site:github.com/actions/checkout tags v7 README actions/checkout@v7

💡 Result:

The actions/checkout@v7 release, published on June 18, 2026, is the current major version of the official GitHub Action for checking out repositories [1][2]. Key changes and features in v7 include: Safer fork pull request handling: By default, the action now refuses to check out code from fork pull requests when a workflow is triggered by pull_request_target or workflow_run [3][4]. This change mitigates potential security risks (often called pwn request vulnerabilities) that occur when running untrusted fork code with the base repository's GITHUB_TOKEN and secrets [3][4]. Users can opt in to the previous behavior by setting the new input allow-unsafe-pr-checkout: true [3][4]. Infrastructure and dependency updates: The action has been migrated to ESM (ECMAScript Modules) to maintain compatibility with modern @actions/* package versions [3][4]. Additionally, it includes updates to direct and transitive dependencies to address known security vulnerabilities [3][5]. The README documentation for the repository has been updated to reflect these changes and provides updated usage snippets referencing @v7 [6][5]. Users are encouraged to refer to the official repository's README for the full list of configuration inputs and specific implementation details [3][6].

Citations:


Disable persisted checkout credentials

actions/checkout@v7 still persists the token by default, and the subsequent uv sync --dev / uv run pytest steps don’t need Git auth. Set persist-credentials: false here unless a later step explicitly requires it.

🧰 Tools
🪛 zizmor (1.26.1)

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

(artipacked)

🤖 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/ci.yml at line 10, Update the actions/checkout step to set
persist-credentials to false, ensuring the existing uv sync --dev and uv run
pytest workflow steps remain unchanged.

Source: Linters/SAST tools

@athal7

athal7 commented Jul 17, 2026

Copy link
Copy Markdown
Owner

@jules this dependency bump couldn't auto-merge (major version change, or no CI to verify against) — can you check the changelog/release notes for breaking changes and update any affected code if needed?

@athal7
athal7 self-requested a review July 17, 2026 02:24
@athal7 athal7 self-assigned this Jul 17, 2026
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 165f85f to 3c58400 Compare July 17, 2026 10:35
@athal7
athal7 merged commit 0d3a2d1 into main Jul 17, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/github_actions/actions/checkout-7 branch July 17, 2026 12:07
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.

1 participant