4040 echo ${MATRIX}
4141 echo "aws_regions_json=${MATRIX}" >> $GITHUB_OUTPUT
4242 - name : Checkout Repo @ SHA - ${{ github.sha }}
43- uses : actions/checkout@v4
44- - uses : actions/setup-python@v5
43+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
44+ - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
4545 with :
4646 python-version : ' 3.x'
4747 - name : Build layers
5151 pip install tox
5252 tox
5353 - name : upload layer
54- uses : actions/upload-artifact@v4
54+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5555 with :
5656 name : layer.zip
5757 path : lambda-layer/src/build/aws-opentelemetry-python-layer.zip
8383 fi
8484 SECRET_KEY=${SECRET_KEY//-/_}
8585 echo "SECRET_KEY=${SECRET_KEY}" >> $GITHUB_ENV
86- - uses : aws-actions/configure-aws-credentials@v4 .0.2
86+ - uses : aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5 .0.0
8787 with :
8888 role-to-assume : ${{ secrets[env.SECRET_KEY] }}
8989 role-duration-seconds : 1200
9292 run : |
9393 echo BUCKET_NAME=python-lambda-layer-${{ github.run_id }}-${{ matrix.aws_region }} | tee --append $GITHUB_ENV
9494 - name : download layer.zip
95- uses : actions/download-artifact@v4
95+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
9696 with :
9797 name : layer.zip
9898 - name : publish
@@ -130,7 +130,7 @@ jobs:
130130 --action lambda:GetLayerVersion
131131 - name : upload layer arn artifact
132132 if : ${{ success() }}
133- uses : actions/upload-artifact@v4
133+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
134134 with :
135135 name : ${{ env.LAYER_NAME }}-${{ matrix.aws_region }}
136136 path : ${{ env.LAYER_NAME }}/${{ matrix.aws_region }}
@@ -143,10 +143,10 @@ jobs:
143143 needs : publish-prod
144144 steps :
145145 - name : Checkout Repo @ SHA - ${{ github.sha }}
146- uses : actions/checkout@v4
147- - uses : hashicorp/setup-terraform@v2
146+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
147+ - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
148148 - name : download layerARNs
149- uses : actions/download-artifact@v4
149+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
150150 with :
151151 pattern : ${{ env.LAYER_NAME }}-*
152152 path : ${{ env.LAYER_NAME }}
@@ -195,7 +195,7 @@ jobs:
195195 echo "}" >> ../layer_cdk
196196 cat ../layer_cdk
197197 - name : download layer.zip
198- uses : actions/download-artifact@v4
198+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
199199 with :
200200 name : layer.zip
201201 - name : Rename layer file
0 commit comments