Skip to content

.github/workflows/oidc-check.yaml #3

.github/workflows/oidc-check.yaml

.github/workflows/oidc-check.yaml #3

Workflow file for this run

on:
workflow_dispatch:
inputs:
awsAccountId:
required: true
default: "779481764036"
description: "AWS account ID (defaults to the management account)"
permissions:
id-token: write
jobs:
aws-sts-get-caller-identity:
runs-on: ubuntu-22.04
steps:
- name: configure-aws-credentials
uses: aws-actions/[email protected]
with:
role-to-assume: "arn:aws:iam::${{ github.event.inputs.awsAccountId }}:role/GitHubActions"
role-session-name: GitHubActions-${{ github.run_id }}-${{ github.run_number }}
aws-region: eu-west-1
- name: sts-get-caller-identity
run: aws sts get-caller-identity