Skip to content

Commit

Permalink
try quoting role-to-assume
Browse files Browse the repository at this point in the history
  • Loading branch information
hertzsprung committed Oct 22, 2023
1 parent 1f08982 commit f31d92f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: check-aws-account-id
uses: actions/github-script@v4
uses: actions/github-script@v6.4.1
with:
script: |
if( ${{ vars.AWS_ACCOUNT_ID }} == "" ) {
if ("${{ vars.AWS_ACCOUNT_ID }}" == "") {
core.setFailed("AWS_ACCOUNT_ID is unspecified")
} else {
core.info("AWS_ACCOUNT_ID is ${{ vars.AWS_ACCOUNT_ID }}")
}
- name: configure-aws-credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT_ID }}:role/GitHubActions
role-to-assume: "arn:aws:iam::${{ vars.AWS_ACCOUNT_ID }}: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
- name: npm-install-cdk
run: npm install -g aws-cdk@2.100.0
run: npm install -g aws-cdk@2.102.0
- name: checkout
uses: actions/[email protected]
- name: setup-java
Expand Down

0 comments on commit f31d92f

Please sign in to comment.