File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 8
8
branches : [ main ]
9
9
workflow_dispatch :
10
10
11
- permissions :
12
- id-token : write
13
- contents : read
11
+ permissions : {}
14
12
15
13
jobs :
16
14
get-version :
17
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : read
18
18
outputs :
19
19
version : ${{ steps.version.outputs.version }}
20
20
steps :
28
28
build :
29
29
needs : [get-version]
30
30
timeout-minutes : 30
31
+ permissions :
32
+ id-token : write
33
+ contents : read
31
34
strategy :
32
35
matrix :
33
36
include :
42
45
- name : Setup Node.js
43
46
uses : actions/setup-node@v4
44
47
with :
45
- node-version : ' 20'
48
+ node-version : ' lts/*'
49
+
50
+ - name : Check copyright headers
51
+ run : npm run check-headers
46
52
47
53
- name : Install build dependencies
48
54
run : |
92
98
93
99
test :
94
100
needs : [get-version, build]
101
+ permissions :
102
+ contents : read
95
103
strategy :
96
104
matrix :
97
105
node-version : [18, 20, 22]
@@ -117,6 +125,7 @@ jobs:
117
125
runs-on : codebuild-project-awsaws-lambda-nodejs-runtime-interface-client-${{ github.run_id }}-${{ github.run_attempt }}
118
126
needs : [get-version, build, test]
119
127
permissions :
128
+ id-token : write
120
129
contents : write
121
130
steps :
122
131
- uses : actions/checkout@v4
@@ -136,11 +145,11 @@ jobs:
136
145
- name : Setup Node.js
137
146
uses : actions/setup-node@v4
138
147
with :
139
- node-version : ' 20 '
148
+ node-version : ' lts/* '
140
149
141
150
- name : Setup NPM authentication
142
151
run : |
143
- NPM_TOKEN=$(aws secretsmanager get-secret-value --secret-id aws-lambda-runtimes/github/nodejs/npm-token --query SecretString --output text)
152
+ NPM_TOKEN=$(aws secretsmanager get-secret-value --secret-id ${{ secrets.NPM_SECRET_NAME }} --query SecretString --output text)
144
153
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
145
154
chmod 0600 .npmrc
146
155
You can’t perform that action at this time.
0 commit comments