@@ -78,13 +78,25 @@ jobs:
7878 if : ${{ steps.dep_scan.outcome != 'success' }}
7979 run : less dependency-check-report.html
8080
81+ - name : Configure AWS credentials for image scan
82+ uses : aws-actions/configure-aws-credentials@v4
83+ with :
84+ role-to-assume : ${{ secrets.AWS_ASSUME_ROLE_ARN }}
85+ aws-region : ${{ env.AWS_DEFAULT_REGION }}
86+
87+ - name : Login to Public ECR
88+ uses : docker/login-action@v3
89+ with :
90+ registry : public.ecr.aws
91+
8192 - name : Perform high image scan on v1
8293 if : always()
8394 id : high_scan_v1
8495 uses : ./.github/actions/image_scan
8596 with :
8697 image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v1.33.0"
8798 severity : ' CRITICAL,HIGH'
99+ logout : ' false'
88100
89101 - name : Perform low image scan on v1
90102 if : always()
93105 with :
94106 image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v1.33.0"
95107 severity : ' MEDIUM,LOW,UNKNOWN'
108+ logout : ' false'
96109
97110 - name : Perform high image scan on v2
98111 if : always()
@@ -101,6 +114,7 @@ jobs:
101114 with :
102115 image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v2.11.2"
103116 severity : ' CRITICAL,HIGH'
117+ logout : ' false'
104118
105119 - name : Perform low image scan on v2
106120 if : always()
@@ -109,6 +123,7 @@ jobs:
109123 with :
110124 image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v2.11.2"
111125 severity : ' MEDIUM,LOW,UNKNOWN'
126+ logout : ' false'
112127
113128 - name : Configure AWS Credentials for emitting metrics
114129 if : always()
0 commit comments