Skip to content

Commit

Permalink
Add more permissions and use master branch on aws-credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashley-wenyizha authored Mar 1, 2023
1 parent ed1b227 commit bff895d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-ecr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
ecr-private:
name: Push to ECR Private
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -17,7 +20,7 @@ jobs:
uses: docker/setup-qemu-action@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -52,7 +55,7 @@ jobs:
uses: imjasonh/[email protected]

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit bff895d

Please sign in to comment.