From e12eb8d7c155758360f0eac96e76d523c148e044 Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Mon, 24 Feb 2025 13:24:22 -0800 Subject: [PATCH] Set environment variable in the correct step --- .github/actions/check-codescanning-config/action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/actions/check-codescanning-config/action.yml b/.github/actions/check-codescanning-config/action.yml index e4f54a033..5de4eddc9 100644 --- a/.github/actions/check-codescanning-config/action.yml +++ b/.github/actions/check-codescanning-config/action.yml @@ -53,7 +53,6 @@ runs: db-location: ${{ runner.temp }}/codescanning-config-cli-test env: CODEQL_ACTION_TEST_MODE: 'true' - EXPECTED_CONFIG_FILE_CONTENTS: '${{ inputs.expected-config-file-contents }}' - name: Install dependencies shell: bash @@ -62,7 +61,11 @@ runs: - name: Check config working-directory: ${{ github.action_path }} shell: bash - run: echo "$EXPECTED_CONFIG_FILE_CONTENTS"; ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS" + env: + EXPECTED_CONFIG_FILE_CONTENTS: '${{ inputs.expected-config-file-contents }}' + run: | + echo "EXPECTED_CONFIG_FILE_CONTENTS = $EXPECTED_CONFIG_FILE_CONTENTS" + ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS" - name: Clean up shell: bash if: always()