Skip to content

Commit 51aa687

Browse files
authored
chore: pin shas (lerna#4230)
1 parent adadb74 commit 51aa687

File tree

5 files changed

+29
-23
lines changed

5 files changed

+29
-23
lines changed

.github/actions/install-node-and-dependencies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ runs:
1313
using: "composite"
1414
steps:
1515
- name: Install node and npm based on the given values (or the volta config in package.json)
16-
uses: actions/setup-node@v4
16+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
1717
with:
1818
node-version-file: ${{ inputs.node-version == '' && 'package.json' || '' }}
1919
node-version: ${{ inputs.node-version }}

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
env:
2828
NX_CI_EXECUTION_ENV: "linux"
2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
3131
with:
3232
fetch-depth: 0
3333

34-
- uses: nrwl/nx-set-shas@v4
34+
- uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v4
3535

3636
- name: Start Nx Cloud CI Run - Linux
3737
run: npx nx-cloud start-ci-run --stop-agents-after="e2e"
@@ -40,7 +40,7 @@ jobs:
4040
uses: ./.github/actions/install-node-and-dependencies
4141

4242
- name: Run parallel distributed tasks
43-
uses: jameshenry/parallel-bash-commands@v1
43+
uses: jameshenry/parallel-bash-commands@943dfd1eebfab8bbf19782c47a85c9ca7e8d245c # v1
4444
with:
4545
cmd1: npx nx-cloud record -- npx nx format:check
4646
cmd2: npx nx run-many -t build --parallel=3
@@ -65,7 +65,7 @@ jobs:
6565
matrix:
6666
agent: [1, 2, 3, 4]
6767
steps:
68-
- uses: actions/checkout@v4
68+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
6969

7070
- name: Configure git metadata
7171
run: |
@@ -130,7 +130,7 @@ jobs:
130130
TEMP: C:\temp
131131
TMP: C:\temp
132132
steps:
133-
- uses: actions/checkout@v4
133+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
134134

135135
- name: Start Nx Cloud CI Run - Windows
136136
run: npx nx-cloud start-ci-run --stop-agents-after="test"
@@ -174,7 +174,7 @@ jobs:
174174
TEMP: C:\temp
175175
TMP: C:\temp
176176
steps:
177-
- uses: actions/checkout@v4
177+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
178178

179179
- name: Configure git metadata
180180
run: |
@@ -199,12 +199,12 @@ jobs:
199199
NX_CI_EXECUTION_ENV: "linux"
200200
NX_CLOUD_DISTRIBUTED_EXECUTION: false
201201
steps:
202-
- uses: actions/checkout@v4
202+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
203203
with:
204204
fetch-depth: 0
205205

206206
- name: Derive appropriate SHAs for base and head for `nx affected` commands
207-
uses: nrwl/nx-set-shas@v4
207+
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v4
208208

209209
- name: Configure git metadata
210210
run: |

.github/workflows/other-node-versions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
matrix:
4848
node: ${{ fromJson(needs.set-node-versions.outputs.node-versions) }}
4949
steps:
50-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
5151
with:
5252
fetch-depth: 0
5353

@@ -112,7 +112,7 @@ jobs:
112112
# git config --global user.signingkey $GPG_KEY_ID
113113

114114
- name: Run parallel distributed builds and tests on each node version
115-
uses: jameshenry/parallel-bash-commands@v1
115+
uses: jameshenry/parallel-bash-commands@943dfd1eebfab8bbf19782c47a85c9ca7e8d245c # v1
116116
with:
117117
cmd1: npx nx run-many -t build --parallel=3
118118
cmd2: npx nx run-many -t test --parallel=3 --ci --maxWorkers=2
@@ -162,7 +162,7 @@ jobs:
162162
# Create 4 agents per node version
163163
agent: [1, 2, 3, 4]
164164
steps:
165-
- uses: actions/checkout@v4
165+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
166166

167167
- name: Configure git metadata
168168
run: |

.github/workflows/pkg-pr-new.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ jobs:
3636
run: echo "${{ github.event.pull_request.html_url }}"
3737

3838
# Check out the PR branch HEAD as a shallow clone
39-
- uses: actions/checkout@v5
39+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
4040
with:
4141
persist-credentials: false
4242

4343
- name: Install Node.js per package.json
44-
uses: actions/setup-node@v5
44+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
4545
with:
4646
# Use the volta.node property as the source of truth
4747
node-version-file: "package.json"
4848
# Disable caching given this workflow could be run on forks (security risk)
4949
package-manager-cache: false
5050

5151
- name: Check PR branch HEAD has not changed since review comment
52-
uses: actions/github-script@v8
52+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
5353
with:
5454
github-token: ${{ secrets.GITHUB_TOKEN }}
5555
script: |

.github/workflows/website-deploy.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,35 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v4
25-
- uses: actions/setup-node@v4
24+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
25+
26+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
2627
with:
2728
node-version: 20
28-
cache: npm
29+
2930
- name: Install dependencies
3031
run: npm ci --omit=optional
32+
3133
- name: Test build website
3234
run: npm run build
35+
3336
deploy:
34-
if: github.event_name != 'pull_request'
37+
if: github.repository == 'lerna/lerna' && github.event_name != 'pull_request'
3538
runs-on: ubuntu-latest
3639
steps:
37-
- uses: actions/checkout@v4
38-
- uses: webfactory/[email protected]
40+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
41+
42+
- uses: webfactory/ssh-agent@fc49353b67b2b7c1e0e6a600572d01a69f2672dd # v0.5.4
3943
with:
4044
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
41-
- uses: actions/setup-node@v4
45+
46+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
4247
with:
4348
node-version: 20
44-
cache: npm
49+
4550
- name: Install dependencies
4651
run: npm ci --omit=optional
52+
4753
- name: Deploy to lerna/website
4854
env:
4955
USE_SSH: true

0 commit comments

Comments
 (0)