2323 image_name : ${{ steps.imageOutput.outputs.imageName }}
2424
2525 steps :
26- - uses : actions/checkout@v5
26+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2727 with :
2828 fetch-depth : 0
2929
3434
3535 # cache local patch outputs
3636 - name : Cache local Maven repository
37- uses : actions/cache@v3
37+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
3838 with :
3939 path : |
4040 ~/.m2/repository/io/opentelemetry/
@@ -49,18 +49,18 @@ jobs:
4949 - uses : gradle/actions/wrapper-validation@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
5050
5151 - name : Configure AWS Credentials
52- uses : aws-actions/configure-aws-credentials@v4
52+ uses : aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5.0.0
5353 with :
5454 role-to-assume : ${{ secrets.AWS_ASSUME_ROLE_ARN }}
5555 aws-region : ${{ env.AWS_DEFAULT_REGION }}
5656
5757 - name : Log in to AWS ECR
58- uses : docker/login-action@v3
58+ uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
5959 with :
6060 registry : public.ecr.aws
6161
6262 - name : Build snapshot with Gradle
63- uses : gradle/gradle-build-action@v3
63+ uses : gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
6464 with :
6565 arguments : build --stacktrace -PenableCoverage=true -PtestUpstreamSnapshots=true
6666 env :
9595 snapshot-ecr-role : ${{ secrets.JAVA_INSTRUMENTATION_SNAPSHOT_ECR }}
9696
9797 - name : Upload to GitHub Actions
98- uses : actions/upload-artifact@v4
98+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9999 with :
100100 name : aws-opentelemetry-agent.jar
101101 path : otelagent/build/libs/aws-opentelemetry-agent-*.jar
@@ -129,7 +129,7 @@ jobs:
129129 runs-on : ubuntu-latest
130130 needs : build
131131 steps :
132- - uses : actions/checkout@v5
132+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
133133 with :
134134 fetch-depth : 0
135135 - uses : actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
@@ -139,21 +139,21 @@ jobs:
139139 - uses : gradle/actions/wrapper-validation@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
140140
141141 - name : Configure AWS Credentials
142- uses : aws-actions/configure-aws-credentials@v4
142+ uses : aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5.0.0
143143 with :
144144 role-to-assume : ${{ secrets.AWS_ASSUME_ROLE_ARN }}
145145 aws-region : ${{ env.AWS_DEFAULT_REGION }}
146146
147147 - name : Log in to AWS ECR
148- uses : docker/login-action@v3
148+ uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
149149 with :
150150 registry : public.ecr.aws
151151
152152 - name : Pull base image of Contract Tests Sample Apps
153153 run : docker pull public.ecr.aws/docker/library/amazoncorretto:23-alpine
154154
155155 - name : Build snapshot with Gradle
156- uses : gradle/gradle-build-action@v3
156+ uses : gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
157157 with :
158158 arguments : contractTests -PtestUpstreamSnapshots=true -PlocalDocker=true
159159
0 commit comments