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 88 branches : [ main ]
99 workflow_dispatch :
1010
11- permissions :
12- id-token : write
13- contents : read
11+ permissions : {}
1412
1513jobs :
1614 get-version :
1715 runs-on : ubuntu-latest
16+ permissions :
17+ contents : read
1818 outputs :
1919 version : ${{ steps.version.outputs.version }}
2020 steps :
2828 build :
2929 needs : [get-version]
3030 timeout-minutes : 30
31+ permissions :
32+ id-token : write
33+ contents : read
3134 strategy :
3235 matrix :
3336 include :
4245 - name : Setup Node.js
4346 uses : actions/setup-node@v4
4447 with :
45- node-version : ' 20'
48+ node-version : ' lts/*'
49+
50+ - name : Check copyright headers
51+ run : npm run check-headers
4652
4753 - name : Install build dependencies
4854 run : |
9298
9399 test :
94100 needs : [get-version, build]
101+ permissions :
102+ contents : read
95103 strategy :
96104 matrix :
97105 node-version : [18, 20, 22]
@@ -117,6 +125,7 @@ jobs:
117125 runs-on : codebuild-project-awsaws-lambda-nodejs-runtime-interface-client-${{ github.run_id }}-${{ github.run_attempt }}
118126 needs : [get-version, build, test]
119127 permissions :
128+ id-token : write
120129 contents : write
121130 steps :
122131 - uses : actions/checkout@v4
@@ -136,11 +145,11 @@ jobs:
136145 - name : Setup Node.js
137146 uses : actions/setup-node@v4
138147 with :
139- node-version : ' 20 '
148+ node-version : ' lts/* '
140149
141150 - name : Setup NPM authentication
142151 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)
144153 echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
145154 chmod 0600 .npmrc
146155
You can’t perform that action at this time.
0 commit comments