Skip to content

Commit 970c897

Browse files
committed
Pin GitHub Actions to full commit SHAs
1 parent eec7ab7 commit 970c897

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/automerge-dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
if: github.actor == 'dependabot[bot]'
88
steps:
9-
- uses: peter-evans/enable-pull-request-automerge@v3
9+
- uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3.0.0
1010
with:
1111
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
1212
pull-request-number: ${{ github.event.pull_request.number }}

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
build:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v6
23-
- uses: actions/setup-node@v6
22+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2424
with:
2525
node-version-file: package.json
2626
cache: npm
@@ -29,11 +29,11 @@ jobs:
2929
- run: npm run format-check
3030
- run: npm run lint
3131
- run: npm run test
32-
- uses: actions/upload-artifact@v7
32+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3333
with:
3434
name: dist
3535
path: dist
36-
- uses: actions/upload-artifact@v7
36+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3737
with:
3838
name: action.yml
3939
path: action.yml
@@ -46,16 +46,16 @@ jobs:
4646
matrix:
4747
target: [built, committed]
4848
steps:
49-
- uses: actions/checkout@v6
49+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5050
with:
5151
ref: main
5252
- if: matrix.target == 'built' || github.event_name == 'pull_request'
53-
uses: actions/download-artifact@v8
53+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5454
with:
5555
name: dist
5656
path: dist
5757
- if: matrix.target == 'built' || github.event_name == 'pull_request'
58-
uses: actions/download-artifact@v8
58+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5959
with:
6060
name: action.yml
6161
path: .
@@ -80,7 +80,7 @@ jobs:
8080
branch: ci-test-${{ matrix.target }}-${{ github.sha }}
8181

8282
- name: Close Pull
83-
uses: peter-evans/close-pull@v3
83+
uses: peter-evans/close-pull@a192af8d70f2d49c49643134605c3b73d4f80fae # v3.0.1
8484
with:
8585
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
8686
comment: '[CI] test ${{ matrix.target }}'
@@ -92,7 +92,7 @@ jobs:
9292
runs-on: ubuntu-latest
9393
steps:
9494
- name: Find Comment
95-
uses: peter-evans/find-comment@v4
95+
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
9696
id: fc
9797
with:
9898
issue-number: ${{ github.event.number }}
@@ -101,7 +101,7 @@ jobs:
101101

102102
- if: steps.fc.outputs.comment-id == ''
103103
name: Create comment
104-
uses: peter-evans/create-or-update-comment@v5
104+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
105105
with:
106106
issue-number: ${{ github.event.number }}
107107
body: |
@@ -118,13 +118,13 @@ jobs:
118118
needs: [test]
119119
runs-on: ubuntu-latest
120120
steps:
121-
- uses: actions/checkout@v6
122-
- uses: actions/download-artifact@v8
121+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
122+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
123123
with:
124124
name: dist
125125
path: dist
126126
- name: Create Pull Request
127-
uses: peter-evans/create-pull-request@v8
127+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
128128
with:
129129
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
130130
commit-message: 'build: update distribution'

.github/workflows/cpr-example-command.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
createPullRequest:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v6
9+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1010

1111
- name: Make changes to pull request
1212
run: date +%s > report.txt
@@ -42,7 +42,7 @@ jobs:
4242
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
4343
4444
- name: Add reaction
45-
uses: peter-evans/create-or-update-comment@v5
45+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
4646
with:
4747
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
4848
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}

.github/workflows/slash-command-dispatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Slash Command Dispatch
10-
uses: peter-evans/slash-command-dispatch@v5
10+
uses: peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2
1111
with:
1212
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
1313
config: >

.github/workflows/update-major-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
tag:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v6
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
2424
fetch-depth: 0

0 commit comments

Comments
 (0)