Skip to content

Commit 4462992

Browse files
authored
Merge pull request #4 from ava-labs/pin-github-action
chore: pin GitHub Actions to commit SHAs
2 parents c3276f5 + ef9d2be commit 4462992

8 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout
8-
uses: actions/checkout@v2.3.1
8+
uses: actions/checkout@28c7f3d2b5162b5ddd3dfd9a45aa55eaf396478b # v2.3.1
99
with:
1010
submodules: recursive
1111

1212
- name: Get changed files
1313
id: changed-files
14-
uses: step-security/changed-files@v45
14+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45
1515

1616
- name: Check changed files
1717
run: |

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v2.3.1
10+
uses: actions/checkout@28c7f3d2b5162b5ddd3dfd9a45aa55eaf396478b # v2.3.1
1111
with:
1212
submodules: recursive
1313
- name: Build
1414
run: |
1515
./gradlew run
1616
- name: Set Node.js 18.x
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
1818
with:
1919
node-version: 18.x
2020
- name: Run yarn install
21-
uses: borales/actions-yarn@v4
21+
uses: borales/actions-yarn@31e8b9ba96946b034c571eb19c7cba0d668dc97e # v4
2222
with:
2323
dir: 'website'
2424
cmd: install # will run `yarn install` command
2525
- name: Run yarn build
26-
uses: borales/actions-yarn@v4
26+
uses: borales/actions-yarn@31e8b9ba96946b034c571eb19c7cba0d668dc97e # v4
2727
with:
2828
dir: 'website'
2929
cmd: run build # will run `yarn test` command
3030
- name: Merge
3131
run: |
3232
cp -a output/. website/public/
3333
- name: Deploy
34-
uses: JamesIves/github-pages-deploy-action@4.1.4
34+
uses: JamesIves/github-pages-deploy-action@5dc1d5a192aeb5ab5b7d5a77b7d36aea4a7f5c92 # 4.1.4
3535
with:
3636
branch: gh-pages
3737
folder: website/public

.github/workflows/post_merge_comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Comment after PR merge
99
steps:
1010
- name: Comment PR
11-
uses: thollander/actions-comment-pull-request@v2
11+
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2
1212
with:
1313
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1414
message: |

.github/workflows/pr_checks.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ jobs:
77
validate_icons:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
1111
with:
1212
fetch-depth: 0
1313

14-
- uses: nrwl/nx-set-shas@v3
14+
- uses: nrwl/nx-set-shas@0e2d18b530b83b68263ff7b74e46b1ba300c83fc # v3
1515
id: last_successful_commit_push
1616
with:
1717
main-branch-name: master
1818
workflow-id: 'pr_checks.yml'
1919

2020
- name: Get changed icons
2121
id: changed-icons
22-
uses: step-security/changed-files@v45
22+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45
2323
with:
2424
files: _data/icons/*.json
2525
base_sha: ${{ steps.last_successful_commit_push.outputs.base }}
2626

2727
- name: Get changed icon blobs
2828
id: changed-icon-blobs
29-
uses: step-security/changed-files@v45
29+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45
3030
with:
3131
files: _data/iconsDownload/*
3232
base_sha: ${{ steps.last_successful_commit_push.outputs.base }}
@@ -109,19 +109,19 @@ jobs:
109109
validate_formatting:
110110
runs-on: ubuntu-latest
111111
steps:
112-
- uses: actions/checkout@v3
112+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
113113
with:
114114
fetch-depth: 0
115115

116-
- uses: nrwl/nx-set-shas@v3
116+
- uses: nrwl/nx-set-shas@0e2d18b530b83b68263ff7b74e46b1ba300c83fc # v3
117117
id: last_successful_commit_push
118118
with:
119119
main-branch-name: master
120120
workflow-id: 'pr_checks.yml'
121121

122122
- name: Get changed files
123123
id: changed-files
124-
uses: step-security/changed-files@v45
124+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45
125125
with:
126126
files: _data/*/*.json
127127
base_sha: ${{ steps.last_successful_commit_push.outputs.base }}

.github/workflows/prettier.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Check out repo
11-
uses: actions/checkout@v2
12-
- uses: actions/cache@v2
11+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
12+
- uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
1313
name: Configure npm caching
1414
with:
1515
path: ~/.npm

.github/workflows/rebase.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
)
1515
steps:
1616
- name: Checkout the latest code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
1818
with:
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
2121
- name: Automatic Rebase
22-
uses: cirrus-actions/rebase@1.7
22+
uses: cirrus-actions/rebase@6e572f08c244e2f04f9beb85a943eb618218714d # 1.7
2323
with:
2424
autosquash: ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
2525
env:

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v4
10+
- uses: actions/stale@a20b814fb01b71def3bd6f56e7494d667ddf28da # v4
1111
with:
1212
stale-issue-message: 'This issue has no activity in a while - it will be closed soon.'
1313
exempt-issue-labels: enhancement

.github/workflows/validate_json.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Check out repo
12-
uses: actions/checkout@v2
13-
- uses: actions/cache@v2
12+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
13+
- uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
1414
name: Configure npm caching
1515
with:
1616
path: ~/.npm

0 commit comments

Comments
 (0)