chore: implementing web-identity via github into aws #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |