Skip to content

Commit

Permalink
add awsAccountId input for oidc check
Browse files Browse the repository at this point in the history
  • Loading branch information
hertzsprung committed Oct 5, 2023
1 parent edd7d37 commit 2152f31
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/oidc-check.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
on: workflow_dispatch
on:
workflow_dispatch:
inputs:
awsAccountId:
required: true
default: "779481764036"
description: "AWS account ID (defaults to the management account)"
permissions:
id-token: write
jobs:
Expand All @@ -8,7 +14,7 @@ jobs:
- name: configure-aws-credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::779481764036:role/GitHubActions
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
Expand Down

0 comments on commit 2152f31

Please sign in to comment.