88name : Daily scan
99
1010on :
11- schedule :
12- - cron : ' 0 18 * * *' # scheduled to run at 18:00 UTC every day
11+ schedule : # scheduled to run at 14:00, 20:00, 02:00 UTC every day
12+ - cron : ' 0 14 * * *' # 6:00/7:00 PST/PDT (14:00 UTC)
13+ - cron : ' 0 20 * * *' # 12:00/13:00 PST/PDT (20:00 UTC)
14+ - cron : ' 0 02 * * *' # 18:00/19:00 PST/PDT (02:00 UTC)
1315 workflow_dispatch : # be able to run the workflow on demand
1416
1517env :
2426 runs-on : ubuntu-latest
2527 steps :
2628 - name : Checkout repo for dependency scan
27- uses : actions/checkout@v4
29+ uses : actions/checkout@v5
2830 with :
2931 fetch-depth : 0
3032
4143 aws-region : ${{ env.AWS_DEFAULT_REGION }}
4244
4345 - name : Get NVD API key for dependency scan
44- uses : aws-actions/aws-secretsmanager-get-secrets@v1
46+ uses : aws-actions/aws-secretsmanager-get-secrets@v2
4547 id : nvd_api_key
4648 with :
4749 secret-ids : ${{ secrets.NVD_API_KEY_SECRET_ARN }}
@@ -76,13 +78,25 @@ jobs:
7678 if : ${{ steps.dep_scan.outcome != 'success' }}
7779 run : less dependency-check-report.html
7880
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+
7992 - name : Perform high image scan on v1
8093 if : always()
8194 id : high_scan_v1
8295 uses : ./.github/actions/image_scan
8396 with :
8497 image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v1.33.0"
8598 severity : ' CRITICAL,HIGH'
99+ logout : ' false'
86100
87101 - name : Perform low image scan on v1
88102 if : always()
@@ -91,22 +105,25 @@ jobs:
91105 with :
92106 image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v1.33.0"
93107 severity : ' MEDIUM,LOW,UNKNOWN'
108+ logout : ' false'
94109
95110 - name : Perform high image scan on v2
96111 if : always()
97112 id : high_scan_v2
98113 uses : ./.github/actions/image_scan
99114 with :
100- image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v2.11.1 "
115+ image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v2.11.2 "
101116 severity : ' CRITICAL,HIGH'
117+ logout : ' false'
102118
103119 - name : Perform low image scan on v2
104120 if : always()
105121 id : low_scan_v2
106122 uses : ./.github/actions/image_scan
107123 with :
108- image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v2.11.1 "
124+ image-ref : " public.ecr.aws/aws-observability/adot-autoinstrumentation-java:v2.11.2 "
109125 severity : ' MEDIUM,LOW,UNKNOWN'
126+ logout : ' false'
110127
111128 - name : Configure AWS Credentials for emitting metrics
112129 if : always()
0 commit comments