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-latest
@@ -79,33 +82,34 @@ jobs:
79
82
80
83
- name : Node.js 8.x
81
84
node-version : " 8.17"
82
-
85
+
83
86
84
87
- name : Node.js 9.x
85
88
node-version : " 9.11"
86
-
89
+
87
90
88
91
- name : Node.js 10.x
89
92
node-version : " 10.24"
90
-
93
+
91
94
92
95
- name : Node.js 11.x
93
96
node-version : " 11.15"
94
-
97
+
95
98
96
99
- name : Node.js 12.x
97
100
node-version : " 12.22"
98
-
101
+
99
102
100
103
- name : Node.js 13.x
101
104
node-version : " 13.14"
102
-
105
+
103
106
104
107
- name : Node.js 14.x
105
108
node-version : " 14.21"
106
109
107
110
- name : Node.js 15.x
108
- node-version : " 15.14"
111
+ node-version : " 15.14"
112
+
109
113
110
114
- name : Node.js 16.x
111
115
node-version : " 16.20"
@@ -126,7 +130,7 @@ jobs:
126
130
node-version : " 21.6"
127
131
128
132
steps :
129
- - uses : actions/checkout@v4
133
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
130
134
131
135
- name : Install Node.js ${{ matrix.node-version }}
132
136
shell : bash -eo pipefail -l {0}
@@ -204,25 +208,28 @@ jobs:
204
208
fi
205
209
206
210
- name : Upload code coverage
207
- uses : actions/upload-artifact@v4
211
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
208
212
if : steps.list_env.outputs.nyc != ''
209
213
with :
210
214
name : coverage-${{ matrix.node-version }}
211
215
path : " ./coverage/${{ matrix.node-version }}"
212
216
retention-days : 1
213
217
214
218
coverage :
219
+ permissions :
220
+ checks : write # for coverallsapp/github-action to create new checks
221
+ contents : read # for actions/checkout to fetch code
215
222
needs : test
216
223
runs-on : ubuntu-latest
217
224
steps :
218
- - uses : actions/checkout@v4
225
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
219
226
220
227
- name : Install lcov
221
228
shell : bash
222
229
run : sudo apt-get -y install lcov
223
230
224
231
- name : Collect coverage reports
225
- uses : actions/download-artifact@v4
232
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
226
233
with :
227
234
path : ./coverage
228
235
@@ -231,6 +238,6 @@ jobs:
231
238
run : find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./coverage/lcov.info
232
239
233
240
- name : Upload coverage report
234
- uses : coverallsapp/github-action@master
241
+ uses : coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # master
235
242
with :
236
243
github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments