-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add awsAccountId input for oidc check
- Loading branch information
1 parent
edd7d37
commit 2152f31
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
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
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: | ||
|
@@ -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 | ||
|