Skip to content

Commit 22dd63b

Browse files
fix(security): pin GitHub Actions to commit SHA
1 parent 06a2bed commit 22dd63b

7 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
name: Lint and Test
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v6
14-
- uses: actions/setup-node@v6
13+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
14+
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
1515
with:
1616
node-version: lts/*
1717
- name: Get yarn cache directory path
1818
id: yarn-cache-dir-path
1919
run: echo "path=$(yarn cache dir)" >> $GITHUB_OUTPUT
20-
- uses: actions/cache@v5
20+
- uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
2121
with:
2222
path: ${{ steps.yarn-cache-dir-path.outputs.path }}
2323
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

.github/workflows/npm_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
release:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v6
24+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
2525
with:
2626
token: ${{ secrets.PAT }}
27-
- uses: actions/setup-node@v6
27+
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
2828
with:
2929
node-version: lts/*
3030
- name: Get yarn cache directory path
3131
id: yarn-cache-dir-path
3232
run: echo "path=$(yarn cache dir)" >> $GITHUB_OUTPUT
33-
- uses: actions/cache@v5
33+
- uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
3434
with:
3535
path: ${{ steps.yarn-cache-dir-path.outputs.path }}
3636
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -53,7 +53,7 @@ jobs:
5353
git push --tags
5454
5555
- name: Release to NPM
56-
uses: JS-DevTools/npm-publish@v4
56+
uses: JS-DevTools/npm-publish@0fd2f4369c5d6bcfcde6091a7c527d810b9b5c3f # v4
5757
with:
5858
token: ${{ secrets.NPM_TOKEN }}
5959
tag: ${{ inputs.tag }}

.github/workflows/pr_title.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
pr_title:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/labeler@v4
21+
- uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4
2222
with:
2323
repo-token: ${{ secrets.GITHUB_TOKEN }}
24-
- uses: amannn/action-semantic-pull-request@v6
24+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
with:

.github/workflows/release_alpha.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
github.event.pull_request.base.ref == 'alpha' &&
4343
startsWith(github.event.pull_request.head.ref, 'release/alpha-')
4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
4646
with:
4747
ref: ${{ github.event.pull_request.merge_commit_sha }}
48-
- uses: actions/setup-node@v4
48+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
4949
with:
5050
# Trusted Publishing requires Node >=22.14 and npm >=11.5.1. Pin a
5151
# concrete >=22.14 version so the floor can't regress via runner

.github/workflows/release_alpha_prepare.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
runs-on: ubuntu-latest
2525
if: github.ref == 'refs/heads/alpha'
2626
steps:
27-
- uses: actions/checkout@v4
28-
- uses: actions/setup-node@v4
27+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
28+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2929
with:
3030
node-version: 22.14.0
3131
- name: Set up git user

.github/workflows/release_beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
release:
1010
permissions:
1111
contents: write
12-
uses: reearth/core/.github/workflows/npm_release.yml@beta
12+
uses: reearth/core/.github/workflows/npm_release.yml@b70d597c18e8346abd10066dfb3f7addd9ed1af3 # beta
1313
with:
1414
branch: beta
1515
tag: beta

.github/workflows/release_latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
release:
1414
permissions:
1515
contents: write
16-
uses: reearth/core/.github/workflows/npm_release.yml@beta
16+
uses: reearth/core/.github/workflows/npm_release.yml@b70d597c18e8346abd10066dfb3f7addd9ed1af3 # beta
1717
with:
1818
branch: main
1919
tag: latest

0 commit comments

Comments
 (0)