Skip to content

chore: implementing web-identity via github into aws #3

chore: implementing web-identity via github into aws

chore: implementing web-identity via github into aws #3

name: Checking AWS Permissions via web-identity
on:
pull_request:
env:
AWS_REGION : "us-east-1"
permissions:
id-token: write
contents: read
jobs:
AssumeRoleAndCallIdentity:
runs-on: ubuntu-latest
environment: shared
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ env.AWS_ASSUME_ROLE_ARN }}
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: ${{ env.AWS_REGION }}
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity