Skip to content

Commit

Permalink
Try removing AWS Creds step
Browse files Browse the repository at this point in the history
  • Loading branch information
lisguo committed Aug 13, 2024
1 parent c74792d commit 88efc3c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/amazon-cloudwatch-observability-image-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ name: Run Image Scan for Amazon CloudWatch Observability Helm Chart

on:
schedule:
- cron: 0 13 * * 1 # Every Monday at 1PM UTC (9AM EST)
- cron: 0 13 * * MON # Every Monday at 1PM UTC (9AM EST)
workflow_dispatch:
# Used for testing, remove once confirmed working
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches:
- main

permissions:
id-token: write
Expand Down Expand Up @@ -53,11 +58,11 @@ jobs:
with:
fetch-depth: 0

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }}
# aws-region: ${{ env.AWS_DEFAULT_REGION }}

- name: "Get image registry"
id: registry
Expand Down

0 comments on commit 88efc3c

Please sign in to comment.