Skip to content

Commit 402d0c3

Browse files
authored
Merge pull request #1 from wright-io/minder_replace_unpinned_actions_with_pinned_action
Replace unpinned actions with pinned action
2 parents 5940825 + a251027 commit 402d0c3

File tree

7 files changed

+40
-40
lines changed

7 files changed

+40
-40
lines changed

.github/workflows/commit_artifacts.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
current_version_modern: ${{ steps.get_current_version.outputs.current_version_modern }}
1818
current_version_rn: ${{ steps.get_current_version.outputs.current_version_rn }}
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
2121
with:
2222
ref: builds/facebook-www
2323
- name: "Get last version string for www"
@@ -30,7 +30,7 @@ jobs:
3030
echo "Last modern version is $VERSION_MODERN"
3131
echo "last_version_classic=$VERSION_CLASSIC" >> "$GITHUB_OUTPUT"
3232
echo "last_version_modern=$VERSION_MODERN" >> "$GITHUB_OUTPUT"
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
3434
with:
3535
ref: builds/facebook-fbsource
3636
- name: "Get last version string for rn"
@@ -40,14 +40,14 @@ jobs:
4040
VERSION_NATIVE_FB=$( [ -f ./compiled-rn/VERSION_NATIVE_FB ] && cat ./compiled-rn/VERSION_NATIVE_FB || echo '' )
4141
echo "Last rn version is $VERSION_NATIVE_FB"
4242
echo "last_version_rn=$VERSION_NATIVE_FB" >> "$GITHUB_OUTPUT"
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
4444
- name: "Check branches"
4545
id: check_branches
4646
run: |
4747
echo "www_branch_count=$(git ls-remote --heads origin "refs/heads/meta-www" | wc -l)" >> "$GITHUB_OUTPUT"
4848
echo "fbsource_branch_count=$(git ls-remote --heads origin "refs/heads/meta-fbsource" | wc -l)" >> "$GITHUB_OUTPUT"
4949
- name: Download and unzip artifacts
50-
uses: actions/github-script@v6
50+
uses: actions/github-script@00f12e3e20659f42342b1c0226afda7f7c042325 # v6
5151
env:
5252
CIRCLECI_TOKEN: ${{secrets.CIRCLECI_TOKEN_DIFFTRAIN}}
5353
with:
@@ -211,11 +211,11 @@ jobs:
211211
echo "current_version_classic=$VERSION_CLASSIC" >> "$GITHUB_OUTPUT"
212212
echo "current_version_modern=$VERSION_MODERN" >> "$GITHUB_OUTPUT"
213213
echo "current_version_rn=$VERSION_NATIVE_FB" >> "$GITHUB_OUTPUT"
214-
- uses: actions/upload-artifact@v3
214+
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
215215
with:
216216
name: compiled
217217
path: compiled/
218-
- uses: actions/upload-artifact@v3
218+
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
219219
with:
220220
name: compiled-rn
221221
path: compiled-rn/
@@ -225,12 +225,12 @@ jobs:
225225
if: ${{ (github.ref == 'refs/heads/main' && needs.download_artifacts.outputs.www_branch_count == '0') || github.ref == 'refs/heads/meta-www' }}
226226
runs-on: ubuntu-latest
227227
steps:
228-
- uses: actions/checkout@v4
228+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
229229
with:
230230
ref: builds/facebook-www
231231
- name: Ensure clean directory
232232
run: rm -rf compiled
233-
- uses: actions/download-artifact@v3
233+
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3
234234
with:
235235
name: compiled
236236
path: compiled/
@@ -292,7 +292,7 @@ jobs:
292292
git status -u
293293
- name: Commit changes to branch
294294
if: steps.check_should_commit.outputs.should_commit == 'true'
295-
uses: stefanzweifel/git-auto-commit-action@v4
295+
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4
296296
with:
297297
commit_message: |
298298
${{ github.event.head_commit.message }}
@@ -308,12 +308,12 @@ jobs:
308308
if: ${{ (github.ref == 'refs/heads/main' && needs.download_artifacts.outputs.fbsource_branch_count == '0') || github.ref == 'refs/heads/meta-fbsource' }}
309309
runs-on: ubuntu-latest
310310
steps:
311-
- uses: actions/checkout@v4
311+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
312312
with:
313313
ref: builds/facebook-fbsource
314314
- name: Ensure clean directory
315315
run: rm -rf compiled-rn
316-
- uses: actions/download-artifact@v3
316+
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3
317317
with:
318318
name: compiled-rn
319319
path: compiled-rn/
@@ -362,7 +362,7 @@ jobs:
362362
git add .
363363
- name: Signing files
364364
if: steps.check_should_commit.outputs.should_commit == 'true'
365-
uses: actions/github-script@v6
365+
uses: actions/github-script@00f12e3e20659f42342b1c0226afda7f7c042325 # v6
366366
with:
367367
script: |
368368
// TODO: Move this to a script file.
@@ -450,7 +450,7 @@ jobs:
450450
git status
451451
- name: Commit changes to branch
452452
if: steps.check_should_commit.outputs.should_commit == 'true'
453-
uses: stefanzweifel/git-auto-commit-action@v4
453+
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4
454454
with:
455455
commit_message: |
456456
${{ github.event.head_commit.message }}

.github/workflows/compiler-playground.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
name: Test playground
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/setup-node@v4
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
21+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
2222
with:
2323
node-version: 18.x
2424
cache: "yarn"
2525
cache-dependency-path: compiler/yarn.lock
2626
- name: Restore cached node_modules
27-
uses: actions/cache@v4
27+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
2828
id: node_modules
2929
with:
3030
path: "**/node_modules"

.github/workflows/compiler-rust.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,24 @@ jobs:
3838
# os: windows-latest
3939
runs-on: ${{ matrix.target.os }}
4040
steps:
41-
- uses: actions/checkout@v4
42-
- uses: Swatinem/rust-cache@v2
41+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
42+
- uses: Swatinem/rust-cache@11d1987849787746b1ba13dcbb74080ec08e5947 # v2
4343
- name: cargo test
4444
run: cargo test --manifest-path=Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }}
4545

4646
lint:
4747
name: Rust Lint
4848
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/checkout@v4
51-
- uses: actions-rs/toolchain@v1
50+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
51+
- uses: actions-rs/toolchain@63eb9591781c46a70274cb3ebdf190fce92702e8 # v1
5252
with:
5353
# NOTE: use `rustup run <toolchain> <command>` in commands below
5454
# with this exact same toolchain value
5555
toolchain: nightly-2023-08-01
5656
override: true
5757
components: rustfmt, clippy
58-
- uses: Swatinem/rust-cache@v2
58+
- uses: Swatinem/rust-cache@11d1987849787746b1ba13dcbb74080ec08e5947 # v2
5959
- name: rustfmt
6060
run: grep -r --include "*.rs" --files-without-match "@generated" crates | xargs rustup run nightly-2023-08-01 rustfmt --check --config="skip_children=true"
6161
# - name: cargo clippy
@@ -66,7 +66,7 @@ jobs:
6666
runs-on: ubuntu-latest
6767
# TODO: build on more platforms, deploy, etc
6868
steps:
69-
- uses: actions/checkout@v4
70-
- uses: Swatinem/rust-cache@v2
69+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
70+
- uses: Swatinem/rust-cache@11d1987849787746b1ba13dcbb74080ec08e5947 # v2
7171
- name: cargo build
7272
run: cargo build --release

.github/workflows/compiler-typescript.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
outputs:
2020
matrix: ${{ steps.set-matrix.outputs.matrix }}
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
2323
- id: set-matrix
2424
run: echo "matrix=$(find packages -mindepth 1 -maxdepth 1 -type d | sed 's!packages/!!g' | tr '\n' ',' | sed s/.$// | jq -Rsc '. / "," - [""]')" >> $GITHUB_OUTPUT
2525

@@ -28,14 +28,14 @@ jobs:
2828
name: Run prettier
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v4
32-
- uses: actions/setup-node@v4
31+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
32+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
3333
with:
3434
node-version: 18.x
3535
cache: "yarn"
3636
cache-dependency-path: compiler/yarn.lock
3737
- name: Restore cached node_modules
38-
uses: actions/cache@v4
38+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
3939
with:
4040
path: "**/node_modules"
4141
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }}
@@ -47,14 +47,14 @@ jobs:
4747
name: Lint babel-plugin-react-compiler
4848
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/checkout@v4
51-
- uses: actions/setup-node@v4
50+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
51+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
5252
with:
5353
node-version: 18.x
5454
cache: "yarn"
5555
cache-dependency-path: compiler/yarn.lock
5656
- name: Restore cached node_modules
57-
uses: actions/cache@v4
57+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
5858
with:
5959
path: "**/node_modules"
6060
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }}
@@ -66,14 +66,14 @@ jobs:
6666
name: Jest babel-plugin-react-compiler
6767
runs-on: ubuntu-latest
6868
steps:
69-
- uses: actions/checkout@v4
70-
- uses: actions/setup-node@v4
69+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
70+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
7171
with:
7272
node-version: 18.x
7373
cache: "yarn"
7474
cache-dependency-path: compiler/yarn.lock
7575
- name: Restore cached node_modules
76-
uses: actions/cache@v4
76+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
7777
id: node_modules
7878
with:
7979
path: "**/node_modules"
@@ -90,14 +90,14 @@ jobs:
9090
matrix:
9191
workspace_name: ${{ fromJSON(needs.discover_yarn_workspaces.outputs.matrix) }}
9292
steps:
93-
- uses: actions/checkout@v4
94-
- uses: actions/setup-node@v4
93+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
94+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
9595
with:
9696
node-version: 18.x
9797
cache: "yarn"
9898
cache-dependency-path: compiler/yarn.lock
9999
- name: Restore cached node_modules
100-
uses: actions/cache@v4
100+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
101101
id: node_modules
102102
with:
103103
path: "**/node_modules"

.github/workflows/devtools_check_repro.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
check-repro:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/github-script@v3
12+
- uses: actions/github-script@ffc2c79a5b2490bd33e0a41c1de74b877714d736 # v3
1313
with:
1414
github-token: ${{ secrets.GITHUB_TOKEN }}
1515
script: |

.github/workflows/fuzz_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
env:
1717
TZ: "/usr/share/zoneinfo/America/Los_Angeles"
1818
steps:
19-
- uses: actions/[email protected]
20-
- uses: actions/setup-node@v4
19+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
20+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
2121
with:
2222
node-version-file: '.nvmrc'
2323
cache: 'yarn'

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
stale:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/stale@v9
12+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9
1313
with:
1414
# --- Issues & PRs ---
1515
# Number of days of inactivity before an issue or PR becomes stale

0 commit comments

Comments
 (0)