Skip to content

ci: bump gha checkout from v5 to v6#101

Merged
richm merged 1 commit intomainfrom
gha-checkout-v6
Dec 1, 2025
Merged

ci: bump gha checkout from v5 to v6#101
richm merged 1 commit intomainfrom
gha-checkout-v6

Conversation

@richm
Copy link
Copy Markdown
Contributor

@richm richm commented Dec 1, 2025

bump gha checkout from v5 to v6

Signed-off-by: Rich Megginson rmeggins@redhat.com

Summary by Sourcery

CI:

  • Bump all workflow references from actions/checkout@v5 to actions/checkout@v6 across CI pipelines.

bump gha checkout from v5 to v6

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
@richm richm requested a review from spetrosi as a code owner December 1, 2025 19:46
@richm richm self-assigned this Dec 1, 2025
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Dec 1, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates all GitHub Actions workflows to use actions/checkout v6 instead of v5 for code checkout steps across the CI pipeline.

Sequence diagram for CI workflow using actions_checkout_v6

sequenceDiagram
    actor Developer
    participant GitHub
    participant Workflow_build_docs
    participant actions_checkout_v6

    Developer->>GitHub: Push commit / open PR
    GitHub->>Workflow_build_docs: Trigger build_docs workflow
    Workflow_build_docs->>actions_checkout_v6: uses actions/checkout@v6
    actions_checkout_v6-->>Workflow_build_docs: Repository files checked out
    Workflow_build_docs->>Workflow_build_docs: Run subsequent jobs (docs build, checks, etc.)
    Workflow_build_docs-->>GitHub: Report workflow status
    GitHub-->>Developer: Show CI result on commit/PR
Loading

File-Level Changes

Change Details Files
Update GitHub Actions workflows to use actions/checkout v6 for all checkout steps.
  • Bump actions/checkout from v5 to v6 in documentation build workflow steps, including main code checkout, docs branch checkout, and sparse-checkout of README and template files.
  • Bump actions/checkout from v5 to v6 in test and lint workflows, including tft, ansible-lint, ansible-managed-var-comment, ansible-test, codespell, markdownlint, pr-title-lint, qemu-kvm-integration-tests, test_converting_readme, weekly_ci, and woke.
  • Bump actions/checkout from v5 to v6 in the changelog_to_tag workflow used to fetch PR contents for tagging.
.github/workflows/build_docs.yml
.github/workflows/tft.yml
.github/workflows/ansible-lint.yml
.github/workflows/ansible-managed-var-comment.yml
.github/workflows/ansible-test.yml
.github/workflows/changelog_to_tag.yml
.github/workflows/codespell.yml
.github/workflows/markdownlint.yml
.github/workflows/pr-title-lint.yml
.github/workflows/qemu-kvm-integration-tests.yml
.github/workflows/test_converting_readme.yml
.github/workflows/weekly_ci.yml
.github/workflows/woke.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes - here's some feedback:

  • Since many workflows use actions/checkout, consider extracting the common checkout step into a reusable workflow or composite action so future version bumps only need to be made in one place.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Since many workflows use `actions/checkout`, consider extracting the common checkout step into a reusable workflow or composite action so future version bumps only need to be made in one place.

## Individual Comments

### Comment 1
<location> `.github/workflows/weekly_ci.yml:33` </location>
<code_context>

       - name: Checkout repo
-        uses: actions/checkout@v5
+        uses: actions/checkout@v6

       - name: Install tox, tox-lsr
</code_context>

<issue_to_address>
**suggestion (performance):** Re-evaluate whether the explicit `apt install git` is still required now that you’re on `checkout@v6` and `ubuntu-latest`.

If you’re not depending on a special Git version or feature, the extra `apt install git` steps in these workflows are probably unnecessary, since `ubuntu-latest` already includes Git and `checkout@v6` only needs a standard install. Dropping them across the jobs would reduce runtime and avoid potential apt/network flakiness.

Suggested implementation:

```
      - name: Checkout latest code
        uses: actions/checkout@v6
        with:
          fetch-depth: 0
      - name: Create or rebase commit, add dump_packages callback

```

If this workflow file contains other jobs/steps that also run `apt install git` (for example, in matrix jobs or other CI phases), you should remove those redundant installations in the same way, keeping only the checkout steps. Ensure any remaining `apt` usage (e.g., for other packages) doesn’t implicitly reintroduce `git` dependence assumptions.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.


- name: Checkout latest code
uses: actions/checkout@v5
uses: actions/checkout@v6
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion (performance): Re-evaluate whether the explicit apt install git is still required now that you’re on checkout@v6 and ubuntu-latest.

If you’re not depending on a special Git version or feature, the extra apt install git steps in these workflows are probably unnecessary, since ubuntu-latest already includes Git and checkout@v6 only needs a standard install. Dropping them across the jobs would reduce runtime and avoid potential apt/network flakiness.

Suggested implementation:

      - name: Checkout latest code
        uses: actions/checkout@v6
        with:
          fetch-depth: 0
      - name: Create or rebase commit, add dump_packages callback

If this workflow file contains other jobs/steps that also run apt install git (for example, in matrix jobs or other CI phases), you should remove those redundant installations in the same way, keeping only the checkout steps. Ensure any remaining apt usage (e.g., for other packages) doesn’t implicitly reintroduce git dependence assumptions.

@richm richm merged commit a85fd11 into main Dec 1, 2025
28 of 29 checks passed
@richm richm deleted the gha-checkout-v6 branch December 1, 2025 20:40
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.

1 participant