4141 echo ${MATRIX}
4242 echo "aws_regions_json=${MATRIX}" >> $GITHUB_OUTPUT
4343 - name : Checkout Repo @ SHA - ${{ github.sha }}
44- uses : actions/checkout@v4
44+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4545 - name : Setup Node
46- uses : actions/setup-node@v4
46+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
4747 with :
4848 node-version : 22
4949 - name : NPM Clean Install
5454 - name : Build Lambda Layer
5555 run : npm run build-lambda
5656 - name : upload layer
57- uses : actions/upload-artifact@v4
57+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5858 with :
5959 name : layer.zip
6060 path : lambda-layer/packages/layer/build/layer.zip
8686 fi
8787 SECRET_KEY=${SECRET_KEY//-/_}
8888 echo "SECRET_KEY=${SECRET_KEY}" >> $GITHUB_ENV
89- - uses : aws-actions/configure-aws-credentials@v4 .0.2
89+ - uses : aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5 .0.0
9090 with :
9191 role-to-assume : ${{ secrets[env.SECRET_KEY] }}
9292 role-duration-seconds : 1200
9595 run : |
9696 echo BUCKET_NAME=nodejs-lambda-layer-${{ github.run_id }}-${{ matrix.aws_region }} | tee --append $GITHUB_ENV
9797 - name : download layer.zip
98- uses : actions/download-artifact@v4
98+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
9999 with :
100100 name : layer.zip
101101 - name : publish
@@ -133,7 +133,7 @@ jobs:
133133 --action lambda:GetLayerVersion
134134 - name : upload layer arn artifact
135135 if : ${{ success() }}
136- uses : actions/upload-artifact@v4
136+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
137137 with :
138138 name : ${{ env.LAYER_NAME }}-${{ matrix.aws_region }}
139139 path : ${{ env.LAYER_NAME }}/${{ matrix.aws_region }}
@@ -146,10 +146,10 @@ jobs:
146146 needs : publish-prod
147147 steps :
148148 - name : Checkout Repo @ SHA - ${{ github.sha }}
149- uses : actions/checkout@v4
150- - uses : hashicorp/setup-terraform@v2
149+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
150+ - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
151151 - name : download layerARNs
152- uses : actions/download-artifact@v4
152+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
153153 with :
154154 pattern : ${{ env.LAYER_NAME }}-*
155155 path : ${{ env.LAYER_NAME }}
@@ -199,7 +199,7 @@ jobs:
199199 echo "}" >> ../layer_cdk
200200 cat ../layer_cdk
201201 - name : download layer.zip
202- uses : actions/download-artifact@v4
202+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
203203 with :
204204 name : layer.zip
205205 - name : Get commit hash
0 commit comments