Skip to content

Commit d2eb35f

Browse files
committed
WIP
1 parent 1ac037c commit d2eb35f

File tree

1 file changed

+7
-0
lines changed
  • github-actions/npm/checkout-and-setup-node

1 file changed

+7
-0
lines changed

github-actions/npm/checkout-and-setup-node/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: 'Checkout and Setup Node'
22
description: 'Checks out the repository and sets up node environment.'
33
author: 'Angular'
44
inputs:
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:

0 commit comments

Comments
 (0)