File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 4
4
- pull_request
5
5
- push
6
6
7
+ permissions :
8
+ contents : read
9
+
7
10
jobs :
8
11
test :
9
12
runs-on : ubuntu-20.04
13
+ permissions :
14
+ contents : read # for actions/checkout to fetch code
15
+ checks : write # for coverallsapp/github-action to create new checks
10
16
strategy :
11
17
matrix :
12
18
name :
@@ -124,7 +130,7 @@ jobs:
124
130
node-version : " 21.7"
125
131
126
132
steps :
127
- - uses : actions/checkout@v2
133
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
128
134
129
135
- name : Install Node.js ${{ matrix.node-version }}
130
136
shell : bash -eo pipefail -l {0}
@@ -195,7 +201,7 @@ jobs:
195
201
run : npm run lint
196
202
197
203
- name : Collect code coverage
198
- uses : coverallsapp/github-action@master
204
+ uses : coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
199
205
if : steps.list_env.outputs.nyc != ''
200
206
with :
201
207
github-token : ${{ secrets.GITHUB_TOKEN }}
@@ -205,9 +211,12 @@ jobs:
205
211
coverage :
206
212
needs : test
207
213
runs-on : ubuntu-latest
214
+ permissions :
215
+ contents : read # for actions/checkout to fetch code
216
+ checks : write # for coverallsapp/github-action to create new checks
208
217
steps :
209
218
- name : Upload code coverage
210
- uses : coverallsapp/github-action@master
219
+ uses : coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
211
220
with :
212
221
github-token : ${{ secrets.github_token }}
213
222
parallel-finished : true
You can’t perform that action at this time.
0 commit comments