checkout/src
Binrui Dong 40a16ebeed
Improve checkout performance on Windows runners by upgrading @actions/github dependency (#1246)
* Improve checkout performance on Windows runners by upgrading @actions/github dependency

Re: https://github.com/actions/checkout/issues/1186

@dscho discovered that the checkout action could stall for a
considerable amount of time on Windows runners waiting for PowerShell
invocations made from 'windows-release' npm package to complete.

Then I studied the dependency chain to figure out where
'windows-release' was imported:

'@actions/checkout'@main
  <- '@actions/github'@2.2.0
    <- '@octokit/endpoint'@6.0.1
    <- '@octokit/graphql'@4.3.1
    <- '@octokit/request'@5.4.2
    <- '@octokit/rest'@16.43.1
      <- 'universal-user-agent'@4.0.1
        <- 'os-name'@3.1.0
          <- 'windows-release'@3.1.0

'universal-user-agent' package dropped its dependency on 'os-name' in
https://github.com/gr2m/universal-user-agent/releases/tag/v6.0.0 .

'@actions/github' v3 removed dependency on '@octokit/rest'@16.43.1 and
allows users to move away from the old 'universal-user-agent' v4.
(https://github.com/actions/toolkit/pull/453)

This pull request attempts to update the version of '@actions/github'
used in the checkout action to avoid importing 'windows-release'.

Based on testing in my own repositories, I can see an improvement in
reduced wait time between entering the checkout action and git actually
starts to do useful work.

* Update .licenses

* Rebuild index.js
2023-04-12 13:55:27 +02:00
..
misc Patch to fix the dependbot alert. (#744) 2022-04-05 13:01:33 -04:00
fs-helper.ts update dev dependencies and react to new linting rules (#611) 2021-10-19 09:52:57 -05:00
git-auth-helper.ts Add new public key for known_hosts (#1237) 2023-03-24 01:34:48 -04:00
git-command-manager.ts Implement branch list using callbacks from exec function (#1045) 2022-12-14 16:08:53 -05:00
git-directory-helper.ts update dev dependencies and react to new linting rules (#611) 2021-10-19 09:52:57 -05:00
git-source-provider.ts Inject GitHub host to be able to clone from another GitHub instance (#922) 2022-09-26 12:34:52 -04:00
git-source-settings.ts Inject GitHub host to be able to clone from another GitHub instance (#922) 2022-09-26 12:34:52 -04:00
git-version.ts Convert checkout to a regular action (#70) 2019-12-03 10:28:59 -05:00
github-api-helper.ts Improve checkout performance on Windows runners by upgrading @actions/github dependency (#1246) 2023-04-12 13:55:27 +02:00
input-helper.ts Inject GitHub host to be able to clone from another GitHub instance (#922) 2022-09-26 12:34:52 -04:00
main.ts set insteadOf url for org-id (#621) 2021-11-01 11:43:18 -05:00
ref-helper.ts Improve checkout performance on Windows runners by upgrading @actions/github dependency (#1246) 2023-04-12 13:55:27 +02:00
regexp-helper.ts add support for submodules (#173) 2020-03-05 14:21:59 -05:00
retry-helper.ts update dev dependencies and react to new linting rules (#611) 2021-10-19 09:52:57 -05:00
state-helper.ts Fix comment typos (that got added in #770) (#1057) 2022-12-28 17:19:08 -05:00
url-helper.ts Inject GitHub host to be able to clone from another GitHub instance (#922) 2022-09-26 12:34:52 -04:00
workflow-context-helper.ts set insteadOf url for org-id (#621) 2021-11-01 11:43:18 -05:00