Skip to content

Commit

Permalink
ci: Added workflow testing credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Apr 20, 2023
1 parent ed0fd9c commit c63ca58
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/assume-aws-role.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Assuming AWS role through OIDC
on:
push:
branches:
- main

jobs:
awsrole:
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::726824350591:role/oidc-github-actions
aws-region: us-east-1
5 changes: 5 additions & 0 deletions .github/workflows/push-ecr-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::726824350591:role/oidc-github-actions
aws-region: us-east-1
- name: Login to AWS ECR
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v1
Expand Down

0 comments on commit c63ca58

Please sign in to comment.