Skip to content

Conversation

@ericsciple
Copy link
Contributor

@ericsciple ericsciple commented Nov 12, 2025

Auth configuration changed in actions/checkout@v6-beta. This PR ports the cleanup for v6-style configuration to v5.

Otherwise, actions/checkout@v5 will fail if the same repo is already checked out by actions/checkout@v6-beta, in the same job, to the same path. Although this scenario is likely very uncommon, I want to reduce friction for users to move to v6.

For quick mitigation if something goes wrong, ACTIONS_CHECKOUT_SKIP_V6_CLEANUP can be set to 1 or true to skip the new cleanup logic.

Workflow for testing the changes E2E
name: Test Checkout Cleanup

on:
  workflow_dispatch:
  push:
    paths:
      - .github/workflows/test-checkout-cleanup.yml

env:
  ACTIONS_CHECKOUT_SKIP_V6_CLEANUP: true

jobs:
  checkout-v5-then-v6-beta:
    if: false
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with v5
        uses: actions/checkout@v5
      
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta

  checkout-v6-beta-then-v5:
    if: false
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
      
      - name: Checkout with v5
        uses: actions/checkout@v5

  checkout-25-11-clean-then-v6-beta:
    if: false
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with 25-11-clean
        uses: actions/checkout@users/ericsciple/25-11-clean
      
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta

  checkout-v6-beta-then-25-11-clean:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
      
      - name: Checkout with 25-11-clean
        uses: actions/checkout@users/ericsciple/25-11-clean

  checkout-v5-then-v6-beta-submodules:
    if: false
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with v5
        uses: actions/checkout@v5
        with:
          ref: submodule-test
          submodules: recursive
      
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
        with:
          ref: submodule-test
          submodules: recursive

  checkout-v6-beta-then-v5-submodules:
    if: false
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
        with:
          ref: submodule-test
          submodules: recursive
      
      - name: Checkout with v5
        uses: actions/checkout@v5
        with:
          ref: submodule-test
          submodules: recursive

  checkout-25-11-clean-then-v6-beta-submodules:
    if: false
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with 25-11-clean
        uses: actions/checkout@users/ericsciple/25-11-clean
        with:
          ref: submodule-test
          submodules: recursive
      
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
        with:
          ref: submodule-test
          submodules: recursive

  checkout-v6-beta-then-25-11-clean-submodules:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
        with:
          ref: submodule-test
          submodules: recursive
      
      - name: Checkout with 25-11-clean
        uses: actions/checkout@users/ericsciple/25-11-clean
        with:
          ref: submodule-test
          submodules: recursive

  checkout-v5-then-v6-beta-submodules-true:
    if: false
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with v5
        uses: actions/checkout@v5
        with:
          ref: submodule-test
          submodules: true
      
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
        with:
          ref: submodule-test
          submodules: true

  checkout-v6-beta-then-v5-submodules-true:
    if: false
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
        with:
          ref: submodule-test
          submodules: true
      
      - name: Checkout with v5
        uses: actions/checkout@v5
        with:
          ref: submodule-test
          submodules: true

  checkout-25-11-clean-then-v6-beta-submodules-true:
    if: false
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with 25-11-clean
        uses: actions/checkout@users/ericsciple/25-11-clean
        with:
          ref: submodule-test
          submodules: true
      
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
        with:
          ref: submodule-test
          submodules: true

  checkout-v6-beta-then-25-11-clean-submodules-true:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with v6-beta
        uses: actions/checkout@v6-beta
        with:
          ref: submodule-test
          submodules: true
      
      - name: Checkout with 25-11-clean
        uses: actions/checkout@users/ericsciple/25-11-clean
        with:
          ref: submodule-test
          submodules: true

@ericsciple ericsciple force-pushed the users/ericsciple/25-11-clean branch from fdb36f5 to 89950f9 Compare November 12, 2025 18:39
@ericsciple ericsciple marked this pull request as ready for review November 12, 2025 19:51
@ericsciple ericsciple changed the title Cleanup actions/checkout@v6 auth style Port actions/checkout@v6 cleanup to v5 Nov 12, 2025
@ericsciple ericsciple changed the title Port actions/checkout@v6 cleanup to v5 Port v6 cleanup to v5 Nov 12, 2025
@ericsciple ericsciple force-pushed the users/ericsciple/25-11-clean branch from 89950f9 to ec6a68f Compare November 12, 2025 19:59
@ericsciple ericsciple merged commit 93cb6ef into releases/v5 Nov 13, 2025
9 checks passed
@ericsciple ericsciple deleted the users/ericsciple/25-11-clean branch November 13, 2025 21:22
luketainton pushed a commit to luketainton/roboluke-tasks that referenced this pull request Nov 17, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://github.com/actions/checkout) | action | patch | `v5.0.0` -> `v5.0.1` |

---

### Release Notes

<details>
<summary>actions/checkout (actions/checkout)</summary>

### [`v5.0.1`](https://github.com/actions/checkout/releases/tag/v5.0.1)

[Compare Source](actions/checkout@v5.0.0...v5.0.1)

#### What's Changed

- Port v6 cleanup to v5 by [@&#8203;ericsciple](https://github.com/ericsciple) in [#&#8203;2301](actions/checkout#2301)

**Full Changelog**: <actions/checkout@v5...v5.0.1>

</details>

---

### Configuration

📅 **Schedule**: 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 is behind base branch, or you tick the rebase/retry checkbox.

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

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xMi4xIiwidXBkYXRlZEluVmVyIjoiNDIuMTIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: https://git.tainton.uk/repos/roboluke/pulls/395
Co-authored-by: renovate[bot] <[email protected]>
Co-committed-by: renovate[bot] <[email protected]>
luketainton pushed a commit to luketainton/gha-workflows that referenced this pull request Nov 17, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://github.com/actions/checkout) | action | patch | `v5.0.0` -> `v5.0.1` |

---

### Release Notes

<details>
<summary>actions/checkout (actions/checkout)</summary>

### [`v5.0.1`](https://github.com/actions/checkout/releases/tag/v5.0.1)

[Compare Source](actions/checkout@v5.0.0...v5.0.1)

#### What's Changed

- Port v6 cleanup to v5 by [@&#8203;ericsciple](https://github.com/ericsciple) in [#&#8203;2301](actions/checkout#2301)

**Full Changelog**: <actions/checkout@v5...v5.0.1>

</details>

---

### Configuration

📅 **Schedule**: 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 is behind base branch, or you tick the rebase/retry checkbox.

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

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xMi4xIiwidXBkYXRlZEluVmVyIjoiNDIuMTIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: https://git.tainton.uk/actions/gha-workflows/pulls/45
Co-authored-by: renovate[bot] <[email protected]>
Co-committed-by: renovate[bot] <[email protected]>
luketainton pushed a commit to luketainton/epage that referenced this pull request Nov 17, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://github.com/actions/checkout) | action | patch | `v5.0.0` -> `v5.0.1` |

---

### Release Notes

<details>
<summary>actions/checkout (actions/checkout)</summary>

### [`v5.0.1`](https://github.com/actions/checkout/releases/tag/v5.0.1)

[Compare Source](actions/checkout@v5.0.0...v5.0.1)

#### What's Changed

- Port v6 cleanup to v5 by [@&#8203;ericsciple](https://github.com/ericsciple) in [#&#8203;2301](actions/checkout#2301)

**Full Changelog**: <actions/checkout@v5...v5.0.1>

</details>

---

### Configuration

📅 **Schedule**: 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 is behind base branch, or you tick the rebase/retry checkbox.

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

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xMi4xIiwidXBkYXRlZEluVmVyIjoiNDIuMTIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: https://git.tainton.uk/repos/epage/pulls/178
Co-authored-by: renovate[bot] <[email protected]>
Co-committed-by: renovate[bot] <[email protected]>
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 19, 2025
| datasource  | package          | from   | to     |
| ----------- | ---------------- | ------ | ------ |
| github-tags | actions/checkout | v4.1.7 | v5.0.1 |


## [vv5.0.1](https://github.com/actions/checkout/releases/tag/v5.0.1)

##### What's Changed

- Port v6 cleanup to v5 by [@ericsciple](https://github.com/ericsciple) in [#2301](actions/checkout#2301)

**Full Changelog**: <actions/checkout@v5...v5.0.1>


## [vv5.0.0](https://github.com/actions/checkout/releases/tag/v5.0.0)

##### What's Changed

- Update actions checkout to use node 24 by [@salmanmkc](https://github.com/salmanmkc) in [#2226](actions/checkout#2226)
- Prepare v5.0.0 release by [@salmanmkc](https://github.com/salmanmkc) in [#2238](actions/checkout#2238)

##### ⚠️ Minimum Compatible Runner Version

**v2.327.1**\
[Release Notes](https://github.com/actions/runner/releases/tag/v2.327.1)

Make sure your runner is updated to this version or newer to use this release.

**Full Changelog**: <actions/checkout@v4...v5.0.0>


## [vv4.3.1](https://github.com/actions/checkout/releases/tag/v4.3.1)

##### What's Changed

- Port v6 cleanup to v4 by [@ericsciple](https://github.com/ericsciple) in [#2305](actions/checkout#2305)

**Full Changelog**: <actions/checkout@v4...v4.3.1>


## [vv4.3.0](https://github.com/actions/checkout/releases/tag/v4.3.0)

##### What's Changed

- docs: update README.md by [@motss](https://github.com/motss) in [#1971](actions/checkout#1971)
- Add internal repos for checking out multiple repositories by [@mouismail](https://github.com/mouismail) in [#1977](actions/checkout#1977)
- Documentation update - add recommended permissions to Readme by [@benwells](https://github.com/benwells) in [#2043](actions/checkout#2043)
- Adjust positioning of user email note and permissions heading by [@joshmgross](https://github.com/joshmgross) in [#2044](actions/checkout#2044)
- Update README.md by [@nebuk89](https://github.com/nebuk89) in [#2194](actions/checkout#2194)
- Update CODEOWNERS for actions by [@TingluoHuang](https://github.com/TingluoHuang) in [#2224](actions/checkout#2224)
- Update package dependencies by [@salmanmkc](https://github.com/salmanmkc) in [#2236](actions/checkout#2236)
- Prepare release v4.3.0 by [@salmanmkc](https://github.com/salmanmkc) in [#2237](actions/checkout#2237)

##### New Contributors

- [@motss](https://github.com/motss) made their first contribution in [#1971](actions/checkout#1971)
- [@mouismail](https://github.com/mouismail) made their first contribution in [#1977](actions/checkout#1977)
- [@benwells](https://github.com/benwells) made their first contribution in [#2043](actions/checkout#2043)
- [@nebuk89](https://github.com/nebuk89) made their first contribution in [#2194](actions/checkout#2194)
- [@salmanmkc](https://github.com/salmanmkc) made their first contribution in [#2236](actions/checkout#2236)

**Full Changelog**: <actions/checkout@v4...v4.3.0>


## [vv4.2.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v422)

- `url-helper.ts` now leverages well-known environment variables by [@jww3](https://github.com/jww3) in [#1941](actions/checkout#1941)
- Expand unit test coverage for `isGhes` by [@jww3](https://github.com/jww3) in [#1946](actions/checkout#1946)


## [vv4.2.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v421)

- Check out other refs/\* by commit if provided, fall back to ref by [@orhantoy](https://github.com/orhantoy) in [#1924](actions/checkout#1924)


## [vv4.2.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v420)

- Add Ref and Commit outputs by [@lucacome](https://github.com/lucacome) in [#1180](actions/checkout#1180)
- Dependency updates by [@dependabot-](https://github.com/dependabot-) [#1777](actions/checkout#1777), [#1872](actions/checkout#1872)
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