From f31d92f7ea015cb2b671b526394dc2c9e2bc9f0b Mon Sep 17 00:00:00 2001 From: James Shaw Date: Sun, 22 Oct 2023 19:40:54 +0100 Subject: [PATCH] try quoting role-to-assume --- .github/workflows/default.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index be43853..5b5afcd 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -8,10 +8,10 @@ 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 }}") @@ -19,13 +19,13 @@ jobs: - name: configure-aws-credentials uses: aws-actions/configure-aws-credentials@v4.0.1 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/checkout@v4.1.0 - name: setup-java