Skip to content

Commit 45c7fce

Browse files
committed
add login step
1 parent f9c28d8 commit 45c7fce

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/daily_scan.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,17 @@ jobs:
7777
if: ${{ steps.dep_scan.outcome != 'success' }}
7878
run: less dependency-check-report.html
7979

80+
- name: Configure AWS credentials for image scan
81+
uses: aws-actions/configure-aws-credentials@v4
82+
with:
83+
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }}
84+
aws-region: ${{ env.AWS_DEFAULT_REGION }}
85+
86+
- name: Login to Public ECR
87+
uses: docker/login-action@v3
88+
with:
89+
registry: public.ecr.aws
90+
8091
- name: Perform high image scan
8192
if: always()
8293
id: high_scan

0 commit comments

Comments
 (0)