File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
github-actions/npm/checkout-and-setup-node Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: 'Checkout and Setup Node'
22description : ' Checks out the repository and sets up node environment.'
33author : ' Angular'
44inputs :
5+ github-token :
6+ description : |
7+ If provided, a token to authenticate with Github for repository checkout.
8+
59 ref :
610 description : |
711 The branch, tag or SHA to checkout. Defaults to allowing actions/checkout to determine the ref.
@@ -38,13 +42,16 @@ runs:
3842 - run : |
3943 git config --global core.autocrlf false
4044 git config --global core.eol lf
45+ git config --global user.name "github-actions[bot]"
4146 shell: bash
4247
4348 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4449 with :
4550 filter : blob:none
4651 persist-credentials : false
52+ repository : ${{ github.repository }}
4753 ref : ${{ inputs.ref }}
54+ token : $${ inputs.github_token }}
4855
4956 - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
5057 with :
You can’t perform that action at this time.
0 commit comments