Skip to content

Check CI/CD AWS authentication #142

Check CI/CD AWS authentication

Check CI/CD AWS authentication #142

name: Check CI/CD AWS authentication
on:
workflow_dispatch:
inputs:
aws_region:
description: AWS region
default: us-east-1
required: false
role_to_assume:
description: ARN of IAM role to assume
required: true
permissions:
contents: read
id-token: write
jobs:
caller-identity:
name: Check caller identity
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws-region: ${{ inputs.aws_region }}
role-to-assume: ${{ inputs.role_to_assume }}
- run: aws sts get-caller-identity