Skip to content

Inject GitHub host to be able to clone from another GitHub instance - #922

Merged
TingluoHuang merged 3 commits into
actions:mainfrom
peter-murray:server-url-injection
Sep 26, 2022
Merged

TingluoHuang merged 3 commits into
actions:mainfrom
peter-murray:server-url-injection

Conversation

@peter-murray

Copy link
Copy Markdown
Contributor

These changes allow for the base URL of another GitHub instance to be provided to the action so that a workflow running on a GHES server can clone a repository from another GHES server or github.com.

These changes maintain the existing default behaviour whilst allowing for a user to inject a URL to alternate GitHub instance and have been validated using an actions runner with and without a git command line client (i.e. git command line clone and HTTP cloning) have been tested.

Comment thread __test__/git-auth-helper.test.ts Outdated
workflowOrganizationId: 123456,
setSafeDirectory: true
setSafeDirectory: true,
githubServerUrl: undefined

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we have a test with githubServerUrl set to some URL?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added tests to the branch and refactored the one that was there to use common code for that test

Comment thread src/octokit-helper.ts

export type OctokitOptions = {
baseUrl?: string
userAgent?: string

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

anything set this userAgent?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@Link-
Link- self-requested a review September 15, 2022 13:53
@Link- Link- self-assigned this Sep 15, 2022
@Link- Link- added the enhancement New feature or request label Sep 15, 2022
@peter-murray
peter-murray requested a review from a team as a code owner September 15, 2022 14:17
Comment thread src/octokit-helper.ts Resolved

@Link- Link- left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@peter-murray can you please run npm run format and push the changes?

Otherwise, I don't see any glaring issues with this change.

@Link- Link- left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Minor feedback, otherwise LGTM

Comment thread src/octokit-helper.ts Resolved
Comment thread README.md Resolved
peter-murray added a commit to peter-murray/checkout that referenced this pull request Sep 20, 2022
@TingluoHuang
TingluoHuang merged commit e6d535c into actions:main Sep 26, 2022
renovate Bot added a commit to cigaleapp/infrastructure that referenced this pull request Oct 27, 2026
##### [vv7.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v701)

- Skip running unsafe pr check if input is default by [@aiqiaoy](https://github.com/aiqiaoy) in [#2518](actions/checkout#2518)
- Trim only ascii whitespace for branch by [@aiqiaoy](https://github.com/aiqiaoy) in [#2521](actions/checkout#2521)
- Escape values passed to --unset by [@aiqiaoy](https://github.com/aiqiaoy) in [#2530](actions/checkout#2530)
- Various dependency updates
##### [vv7.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v700)

- Block checking out fork PR for pull_request_target and workflow_run by [@aiqiaoy](https://github.com/aiqiaoy) in [#2454](actions/checkout#2454)
- Various dependency updates
##### [vv6.1.0](https://github.com/actions/checkout/releases/tag/v6.1.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v6 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2500](actions/checkout#2500)
- backport fixes to releases-v6 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2527](actions/checkout#2527)

<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>
##### [vv6.0.3](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v603)

- Fix checkout init for SHA-256 repositories by [@yaananth](https://github.com/yaananth) in [#2439](actions/checkout#2439)
- fix: expand merge commit SHA regex and add SHA-256 test cases by [@yaananth](https://github.com/yaananth) in [#2414](actions/checkout#2414)
##### [vv6.0.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v602)

- Fix tag handling: preserve annotations and explicit fetch-tags by [@ericsciple](https://github.com/ericsciple) in [#2356](actions/checkout#2356)
##### [vv6.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v601)

- Add worktree support for persist-credentials includeIf by [@ericsciple](https://github.com/ericsciple) in [#2327](actions/checkout#2327)
##### [vv6.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v600)

- Persist creds to a separate file by [@ericsciple](https://github.com/ericsciple) in [#2286](actions/checkout#2286)
- Update README to include Node.js 24 support details and requirements by [@salmanmkc](https://github.com/salmanmkc) in [#2248](actions/checkout#2248)
##### [vv5.1.0](https://github.com/actions/checkout/releases/tag/v5.1.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v5 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2501](actions/checkout#2501)
- backport fixes to releases-v5 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2523](actions/checkout#2523)

<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>
##### [vv5.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v501)

- Port v6 cleanup to v5 by [@ericsciple](https://github.com/ericsciple) in [#2301](actions/checkout#2301)
##### [vv5.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v500)

- Update actions checkout to use node 24 by [@salmanmkc](https://github.com/salmanmkc) in [#2226](actions/checkout#2226)
##### [vv4.4.0](https://github.com/actions/checkout/releases/tag/v4.4.0)

#### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v4 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2502](actions/checkout#2502)
- backport fixes to releases-v4 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2524](actions/checkout#2524)

<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@v4.3.1...v4.4.0>
##### [vv4.3.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v431)

- Port v6 cleanup to v4 by [@ericsciple](https://github.com/ericsciple) in [#2305](actions/checkout#2305)
##### [vv4.3.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v430)

- 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)
##### [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)
##### [vv4.1.7](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v417)

- Bump the minor-npm-dependencies group across 1 directory with 4 updates by [@dependabot](https://github.com/dependabot) in [#1739](actions/checkout#1739)
- Bump actions/checkout from 3 to 4 by [@dependabot](https://github.com/dependabot) in [#1697](actions/checkout#1697)
- Check out other refs/\* by commit by [@orhantoy](https://github.com/orhantoy) in [#1774](actions/checkout#1774)
- Pin actions/checkout's own workflows to a known, good, stable version. by [@jww3](https://github.com/jww3) in [#1776](actions/checkout#1776)
##### [vv4.1.6](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v416)

- Check platform to set archive extension appropriately by [@cory-miller](https://github.com/cory-miller) in [#1732](actions/checkout#1732)
##### [vv4.1.5](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v415)

- Update NPM dependencies by [@cory-miller](https://github.com/cory-miller) in [#1703](actions/checkout#1703)
- Bump github/codeql-action from 2 to 3 by [@dependabot](https://github.com/dependabot) in [#1694](actions/checkout#1694)
- Bump actions/setup-node from 1 to 4 by [@dependabot](https://github.com/dependabot) in [#1696](actions/checkout#1696)
- Bump actions/upload-artifact from 2 to 4 by [@dependabot](https://github.com/dependabot) in [#1695](actions/checkout#1695)
- README: Suggest `user.email` to be `41898282+github-actions[bot]@users.noreply.github.com` by [@cory-miller](https://github.com/cory-miller) in [#1707](actions/checkout#1707)
##### [vv4.1.4](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v414)

- Disable `extensions.worktreeConfig` when disabling `sparse-checkout` by [@jww3](https://github.com/jww3) in [#1692](actions/checkout#1692)
- Add dependabot config by [@cory-miller](https://github.com/cory-miller) in [#1688](actions/checkout#1688)
- Bump the minor-actions-dependencies group with 2 updates by [@dependabot](https://github.com/dependabot) in [#1693](actions/checkout#1693)
- Bump word-wrap from 1.2.3 to 1.2.5 by [@dependabot](https://github.com/dependabot) in [#1643](actions/checkout#1643)
##### [vv4.1.3](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v413)

- Check git version before attempting to disable `sparse-checkout` by [@jww3](https://github.com/jww3) in [#1656](actions/checkout#1656)
- Add SSH user parameter by [@cory-miller](https://github.com/cory-miller) in [#1685](actions/checkout#1685)
- Update `actions/checkout` version in `update-main-version.yml` by [@jww3](https://github.com/jww3) in [#1650](actions/checkout#1650)
##### [vv4.1.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v412)

- Fix: Disable sparse checkout whenever `sparse-checkout` option is not present [@dscho](https://github.com/dscho) in [#1598](actions/checkout#1598)
##### [vv4.1.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v411)

- Correct link to GitHub Docs by [@peterbe](https://github.com/peterbe) in [#1511](actions/checkout#1511)
- Link to release page from what's new section by [@cory-miller](https://github.com/cory-miller) in [#1514](actions/checkout#1514)
##### [vv4.1.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v410)

- [Add support for partial checkout filters](actions/checkout#1396)
##### [vv4.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v400)

- [Support fetching without the --progress option](actions/checkout#1067)
- [Update to node20](actions/checkout#1436)
##### [vv3.7.0](https://github.com/actions/checkout/releases/tag/v3.7.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v3 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2503](actions/checkout#2503)
- backport fixes to releases-v3 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2525](actions/checkout#2525)

<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@v3.6.0...v3.7.0>
##### [vv3.6.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v360)

- [Fix: Mark test scripts with Bash'isms to be run via Bash](actions/checkout#1377)
- [Add option to fetch tags even if fetch-depth > 0](actions/checkout#579)
##### [vv3.5.3](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v353)

- [Fix: Checkout fail in self-hosted runners when faulty submodule are checked-in](actions/checkout#1196)
- [Fix typos found by codespell](actions/checkout#1287)
- [Add support for sparse checkouts](actions/checkout#1369)
##### [vv3.5.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v352)

- [Fix api endpoint for GHES](actions/checkout#1289)
##### [vv3.5.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v351)

- [Fix slow checkout on Windows](actions/checkout#1246)
##### [vv3.5.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v350)

- [Add new public key for known_hosts](actions/checkout#1237)
##### [vv3.4.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v340)

- [Upgrade codeql actions to v2](actions/checkout#1209)
- [Upgrade dependencies](actions/checkout#1210)
- [Upgrade @actions/io](actions/checkout#1225)
##### [vv3.3.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v330)

- [Implement branch list using callbacks from exec function](actions/checkout#1045)
- [Add in explicit reference to private checkout options](actions/checkout#1050)
- [Fix comment typos (that got added in #770)](actions/checkout#1057)
##### [vv3.2.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v320)

- [Add GitHub Action to perform release](actions/checkout#942)
- [Fix status badge](actions/checkout#967)
- [Replace datadog/squid with ubuntu/squid Docker image](actions/checkout#1002)
- [Wrap pipeline commands for submoduleForeach in quotes](actions/checkout#964)
- [Update @actions/io to 1.1.2](actions/checkout#1029)
- [Upgrading version to 3.2.0](actions/checkout#1039)
##### [vv3.1.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v310)

- [Use @actions/core `saveState` and `getState`](actions/checkout#939)
- [Add `github-server-url` input](actions/checkout#922)
##### [vv3.0.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v302)

- [Add input `set-safe-directory`](actions/checkout#770)
##### [vv3.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v301)

- [Fixed an issue where checkout failed to run in container jobs due to the new git setting `safe.directory`](actions/checkout#762)
- [Bumped various npm package versions](actions/checkout#744)
gwennlbh pushed a commit to cigaleapp/infrastructure that referenced this pull request Oct 27, 2026
##### [vv7.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v701)

- Skip running unsafe pr check if input is default by [@aiqiaoy](https://github.com/aiqiaoy) in [#2518](actions/checkout#2518)
- Trim only ascii whitespace for branch by [@aiqiaoy](https://github.com/aiqiaoy) in [#2521](actions/checkout#2521)
- Escape values passed to --unset by [@aiqiaoy](https://github.com/aiqiaoy) in [#2530](actions/checkout#2530)
- Various dependency updates
##### [vv7.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v700)

- Block checking out fork PR for pull_request_target and workflow_run by [@aiqiaoy](https://github.com/aiqiaoy) in [#2454](actions/checkout#2454)
- Various dependency updates
##### [vv6.1.0](https://github.com/actions/checkout/releases/tag/v6.1.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v6 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2500](actions/checkout#2500)
- backport fixes to releases-v6 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2527](actions/checkout#2527)

<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>
##### [vv6.0.3](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v603)

- Fix checkout init for SHA-256 repositories by [@yaananth](https://github.com/yaananth) in [#2439](actions/checkout#2439)
- fix: expand merge commit SHA regex and add SHA-256 test cases by [@yaananth](https://github.com/yaananth) in [#2414](actions/checkout#2414)
##### [vv6.0.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v602)

- Fix tag handling: preserve annotations and explicit fetch-tags by [@ericsciple](https://github.com/ericsciple) in [#2356](actions/checkout#2356)
##### [vv6.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v601)

- Add worktree support for persist-credentials includeIf by [@ericsciple](https://github.com/ericsciple) in [#2327](actions/checkout#2327)
##### [vv6.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v600)

- Persist creds to a separate file by [@ericsciple](https://github.com/ericsciple) in [#2286](actions/checkout#2286)
- Update README to include Node.js 24 support details and requirements by [@salmanmkc](https://github.com/salmanmkc) in [#2248](actions/checkout#2248)
##### [vv5.1.0](https://github.com/actions/checkout/releases/tag/v5.1.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v5 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2501](actions/checkout#2501)
- backport fixes to releases-v5 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2523](actions/checkout#2523)

<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>
##### [vv5.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v501)

- Port v6 cleanup to v5 by [@ericsciple](https://github.com/ericsciple) in [#2301](actions/checkout#2301)
##### [vv5.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v500)

- Update actions checkout to use node 24 by [@salmanmkc](https://github.com/salmanmkc) in [#2226](actions/checkout#2226)
##### [vv4.4.0](https://github.com/actions/checkout/releases/tag/v4.4.0)

#### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v4 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2502](actions/checkout#2502)
- backport fixes to releases-v4 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2524](actions/checkout#2524)

<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@v4.3.1...v4.4.0>
##### [vv4.3.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v431)

- Port v6 cleanup to v4 by [@ericsciple](https://github.com/ericsciple) in [#2305](actions/checkout#2305)
##### [vv4.3.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v430)

- 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)
##### [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)
##### [vv4.1.7](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v417)

- Bump the minor-npm-dependencies group across 1 directory with 4 updates by [@dependabot](https://github.com/dependabot) in [#1739](actions/checkout#1739)
- Bump actions/checkout from 3 to 4 by [@dependabot](https://github.com/dependabot) in [#1697](actions/checkout#1697)
- Check out other refs/\* by commit by [@orhantoy](https://github.com/orhantoy) in [#1774](actions/checkout#1774)
- Pin actions/checkout's own workflows to a known, good, stable version. by [@jww3](https://github.com/jww3) in [#1776](actions/checkout#1776)
##### [vv4.1.6](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v416)

- Check platform to set archive extension appropriately by [@cory-miller](https://github.com/cory-miller) in [#1732](actions/checkout#1732)
##### [vv4.1.5](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v415)

- Update NPM dependencies by [@cory-miller](https://github.com/cory-miller) in [#1703](actions/checkout#1703)
- Bump github/codeql-action from 2 to 3 by [@dependabot](https://github.com/dependabot) in [#1694](actions/checkout#1694)
- Bump actions/setup-node from 1 to 4 by [@dependabot](https://github.com/dependabot) in [#1696](actions/checkout#1696)
- Bump actions/upload-artifact from 2 to 4 by [@dependabot](https://github.com/dependabot) in [#1695](actions/checkout#1695)
- README: Suggest `user.email` to be `41898282+github-actions[bot]@users.noreply.github.com` by [@cory-miller](https://github.com/cory-miller) in [#1707](actions/checkout#1707)
##### [vv4.1.4](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v414)

- Disable `extensions.worktreeConfig` when disabling `sparse-checkout` by [@jww3](https://github.com/jww3) in [#1692](actions/checkout#1692)
- Add dependabot config by [@cory-miller](https://github.com/cory-miller) in [#1688](actions/checkout#1688)
- Bump the minor-actions-dependencies group with 2 updates by [@dependabot](https://github.com/dependabot) in [#1693](actions/checkout#1693)
- Bump word-wrap from 1.2.3 to 1.2.5 by [@dependabot](https://github.com/dependabot) in [#1643](actions/checkout#1643)
##### [vv4.1.3](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v413)

- Check git version before attempting to disable `sparse-checkout` by [@jww3](https://github.com/jww3) in [#1656](actions/checkout#1656)
- Add SSH user parameter by [@cory-miller](https://github.com/cory-miller) in [#1685](actions/checkout#1685)
- Update `actions/checkout` version in `update-main-version.yml` by [@jww3](https://github.com/jww3) in [#1650](actions/checkout#1650)
##### [vv4.1.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v412)

- Fix: Disable sparse checkout whenever `sparse-checkout` option is not present [@dscho](https://github.com/dscho) in [#1598](actions/checkout#1598)
##### [vv4.1.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v411)

- Correct link to GitHub Docs by [@peterbe](https://github.com/peterbe) in [#1511](actions/checkout#1511)
- Link to release page from what's new section by [@cory-miller](https://github.com/cory-miller) in [#1514](actions/checkout#1514)
##### [vv4.1.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v410)

- [Add support for partial checkout filters](actions/checkout#1396)
##### [vv4.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v400)

- [Support fetching without the --progress option](actions/checkout#1067)
- [Update to node20](actions/checkout#1436)
##### [vv3.7.0](https://github.com/actions/checkout/releases/tag/v3.7.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v3 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2503](actions/checkout#2503)
- backport fixes to releases-v3 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2525](actions/checkout#2525)

<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@v3.6.0...v3.7.0>
##### [vv3.6.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v360)

- [Fix: Mark test scripts with Bash'isms to be run via Bash](actions/checkout#1377)
- [Add option to fetch tags even if fetch-depth > 0](actions/checkout#579)
##### [vv3.5.3](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v353)

- [Fix: Checkout fail in self-hosted runners when faulty submodule are checked-in](actions/checkout#1196)
- [Fix typos found by codespell](actions/checkout#1287)
- [Add support for sparse checkouts](actions/checkout#1369)
##### [vv3.5.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v352)

- [Fix api endpoint for GHES](actions/checkout#1289)
##### [vv3.5.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v351)

- [Fix slow checkout on Windows](actions/checkout#1246)
##### [vv3.5.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v350)

- [Add new public key for known_hosts](actions/checkout#1237)
##### [vv3.4.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v340)

- [Upgrade codeql actions to v2](actions/checkout#1209)
- [Upgrade dependencies](actions/checkout#1210)
- [Upgrade @actions/io](actions/checkout#1225)
##### [vv3.3.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v330)

- [Implement branch list using callbacks from exec function](actions/checkout#1045)
- [Add in explicit reference to private checkout options](actions/checkout#1050)
- [Fix comment typos (that got added in #770)](actions/checkout#1057)
##### [vv3.2.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v320)

- [Add GitHub Action to perform release](actions/checkout#942)
- [Fix status badge](actions/checkout#967)
- [Replace datadog/squid with ubuntu/squid Docker image](actions/checkout#1002)
- [Wrap pipeline commands for submoduleForeach in quotes](actions/checkout#964)
- [Update @actions/io to 1.1.2](actions/checkout#1029)
- [Upgrading version to 3.2.0](actions/checkout#1039)
##### [vv3.1.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v310)

- [Use @actions/core `saveState` and `getState`](actions/checkout#939)
- [Add `github-server-url` input](actions/checkout#922)
##### [vv3.0.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v302)

- [Add input `set-safe-directory`](actions/checkout#770)
##### [vv3.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v301)

- [Fixed an issue where checkout failed to run in container jobs due to the new git setting `safe.directory`](actions/checkout#762)
- [Bumped various npm package versions](actions/checkout#744)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
gwennlbh pushed a commit to cigaleapp/infrastructure that referenced this pull request Oct 28, 2026
##### [vv7.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v701)

- Skip running unsafe pr check if input is default by [@aiqiaoy](https://github.com/aiqiaoy) in [#2518](actions/checkout#2518)
- Trim only ascii whitespace for branch by [@aiqiaoy](https://github.com/aiqiaoy) in [#2521](actions/checkout#2521)
- Escape values passed to --unset by [@aiqiaoy](https://github.com/aiqiaoy) in [#2530](actions/checkout#2530)
- Various dependency updates
##### [vv7.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v700)

- Block checking out fork PR for pull_request_target and workflow_run by [@aiqiaoy](https://github.com/aiqiaoy) in [#2454](actions/checkout#2454)
- Various dependency updates
##### [vv6.1.0](https://github.com/actions/checkout/releases/tag/v6.1.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v6 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2500](actions/checkout#2500)
- backport fixes to releases-v6 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2527](actions/checkout#2527)

<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>
##### [vv6.0.3](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v603)

- Fix checkout init for SHA-256 repositories by [@yaananth](https://github.com/yaananth) in [#2439](actions/checkout#2439)
- fix: expand merge commit SHA regex and add SHA-256 test cases by [@yaananth](https://github.com/yaananth) in [#2414](actions/checkout#2414)
##### [vv6.0.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v602)

- Fix tag handling: preserve annotations and explicit fetch-tags by [@ericsciple](https://github.com/ericsciple) in [#2356](actions/checkout#2356)
##### [vv6.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v601)

- Add worktree support for persist-credentials includeIf by [@ericsciple](https://github.com/ericsciple) in [#2327](actions/checkout#2327)
##### [vv6.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v600)

- Persist creds to a separate file by [@ericsciple](https://github.com/ericsciple) in [#2286](actions/checkout#2286)
- Update README to include Node.js 24 support details and requirements by [@salmanmkc](https://github.com/salmanmkc) in [#2248](actions/checkout#2248)
##### [vv5.1.0](https://github.com/actions/checkout/releases/tag/v5.1.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v5 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2501](actions/checkout#2501)
- backport fixes to releases-v5 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2523](actions/checkout#2523)

<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>
##### [vv5.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v501)

- Port v6 cleanup to v5 by [@ericsciple](https://github.com/ericsciple) in [#2301](actions/checkout#2301)
##### [vv5.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v500)

- Update actions checkout to use node 24 by [@salmanmkc](https://github.com/salmanmkc) in [#2226](actions/checkout#2226)
##### [vv4.4.0](https://github.com/actions/checkout/releases/tag/v4.4.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v4 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2502](actions/checkout#2502)
- backport fixes to releases-v4 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2524](actions/checkout#2524)

<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@v4.3.1...v4.4.0>
##### [vv4.3.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v431)

- Port v6 cleanup to v4 by [@ericsciple](https://github.com/ericsciple) in [#2305](actions/checkout#2305)
##### [vv4.3.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v430)

- 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)
##### [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)
##### [vv4.1.7](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v417)

- Bump the minor-npm-dependencies group across 1 directory with 4 updates by [@dependabot](https://github.com/dependabot) in [#1739](actions/checkout#1739)
- Bump actions/checkout from 3 to 4 by [@dependabot](https://github.com/dependabot) in [#1697](actions/checkout#1697)
- Check out other refs/\* by commit by [@orhantoy](https://github.com/orhantoy) in [#1774](actions/checkout#1774)
- Pin actions/checkout's own workflows to a known, good, stable version. by [@jww3](https://github.com/jww3) in [#1776](actions/checkout#1776)
##### [vv4.1.6](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v416)

- Check platform to set archive extension appropriately by [@cory-miller](https://github.com/cory-miller) in [#1732](actions/checkout#1732)
##### [vv4.1.5](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v415)

- Update NPM dependencies by [@cory-miller](https://github.com/cory-miller) in [#1703](actions/checkout#1703)
- Bump github/codeql-action from 2 to 3 by [@dependabot](https://github.com/dependabot) in [#1694](actions/checkout#1694)
- Bump actions/setup-node from 1 to 4 by [@dependabot](https://github.com/dependabot) in [#1696](actions/checkout#1696)
- Bump actions/upload-artifact from 2 to 4 by [@dependabot](https://github.com/dependabot) in [#1695](actions/checkout#1695)
- README: Suggest `user.email` to be `41898282+github-actions[bot]@users.noreply.github.com` by [@cory-miller](https://github.com/cory-miller) in [#1707](actions/checkout#1707)
##### [vv4.1.4](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v414)

- Disable `extensions.worktreeConfig` when disabling `sparse-checkout` by [@jww3](https://github.com/jww3) in [#1692](actions/checkout#1692)
- Add dependabot config by [@cory-miller](https://github.com/cory-miller) in [#1688](actions/checkout#1688)
- Bump the minor-actions-dependencies group with 2 updates by [@dependabot](https://github.com/dependabot) in [#1693](actions/checkout#1693)
- Bump word-wrap from 1.2.3 to 1.2.5 by [@dependabot](https://github.com/dependabot) in [#1643](actions/checkout#1643)
##### [vv4.1.3](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v413)

- Check git version before attempting to disable `sparse-checkout` by [@jww3](https://github.com/jww3) in [#1656](actions/checkout#1656)
- Add SSH user parameter by [@cory-miller](https://github.com/cory-miller) in [#1685](actions/checkout#1685)
- Update `actions/checkout` version in `update-main-version.yml` by [@jww3](https://github.com/jww3) in [#1650](actions/checkout#1650)
##### [vv4.1.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v412)

- Fix: Disable sparse checkout whenever `sparse-checkout` option is not present [@dscho](https://github.com/dscho) in [#1598](actions/checkout#1598)
##### [vv4.1.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v411)

- Correct link to GitHub Docs by [@peterbe](https://github.com/peterbe) in [#1511](actions/checkout#1511)
- Link to release page from what's new section by [@cory-miller](https://github.com/cory-miller) in [#1514](actions/checkout#1514)
##### [vv4.1.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v410)

- [Add support for partial checkout filters](actions/checkout#1396)
##### [vv4.0.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v400)

- [Support fetching without the --progress option](actions/checkout#1067)
- [Update to node20](actions/checkout#1436)
##### [vv3.7.0](https://github.com/actions/checkout/releases/tag/v3.7.0)

##### What's Changed

- **\[BREAKING]** backport `allow-unsafe-pr-checkout` to v3 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2503](actions/checkout#2503)
- backport fixes to releases-v3 by [@aiqiaoy](https://github.com/aiqiaoy) in [#2525](actions/checkout#2525)

<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@v3.6.0...v3.7.0>
##### [vv3.6.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v360)

- [Fix: Mark test scripts with Bash'isms to be run via Bash](actions/checkout#1377)
- [Add option to fetch tags even if fetch-depth > 0](actions/checkout#579)
##### [vv3.5.3](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v353)

- [Fix: Checkout fail in self-hosted runners when faulty submodule are checked-in](actions/checkout#1196)
- [Fix typos found by codespell](actions/checkout#1287)
- [Add support for sparse checkouts](actions/checkout#1369)
##### [vv3.5.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v352)

- [Fix api endpoint for GHES](actions/checkout#1289)
##### [vv3.5.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v351)

- [Fix slow checkout on Windows](actions/checkout#1246)
##### [vv3.5.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v350)

- [Add new public key for known_hosts](actions/checkout#1237)
##### [vv3.4.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v340)

- [Upgrade codeql actions to v2](actions/checkout#1209)
- [Upgrade dependencies](actions/checkout#1210)
- [Upgrade @actions/io](actions/checkout#1225)
##### [vv3.3.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v330)

- [Implement branch list using callbacks from exec function](actions/checkout#1045)
- [Add in explicit reference to private checkout options](actions/checkout#1050)
- [Fix comment typos (that got added in #770)](actions/checkout#1057)
##### [vv3.2.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v320)

- [Add GitHub Action to perform release](actions/checkout#942)
- [Fix status badge](actions/checkout#967)
- [Replace datadog/squid with ubuntu/squid Docker image](actions/checkout#1002)
- [Wrap pipeline commands for submoduleForeach in quotes](actions/checkout#964)
- [Update @actions/io to 1.1.2](actions/checkout#1029)
- [Upgrading version to 3.2.0](actions/checkout#1039)
##### [vv3.1.0](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v310)

- [Use @actions/core `saveState` and `getState`](actions/checkout#939)
- [Add `github-server-url` input](actions/checkout#922)
##### [vv3.0.2](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v302)

- [Add input `set-safe-directory`](actions/checkout#770)
##### [vv3.0.1](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v301)

- [Fixed an issue where checkout failed to run in container jobs due to the new git setting `safe.directory`](actions/checkout#762)
- [Bumped various npm package versions](actions/checkout#744)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants