Skip to content

Commit e12eb8d

Browse files
committed
Set environment variable in the correct step
1 parent 3b348d9 commit e12eb8d

File tree

1 file changed

+5
-2
lines changed
  • .github/actions/check-codescanning-config

1 file changed

+5
-2
lines changed

.github/actions/check-codescanning-config/action.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ runs:
5353
db-location: ${{ runner.temp }}/codescanning-config-cli-test
5454
env:
5555
CODEQL_ACTION_TEST_MODE: 'true'
56-
EXPECTED_CONFIG_FILE_CONTENTS: '${{ inputs.expected-config-file-contents }}'
5756

5857
- name: Install dependencies
5958
shell: bash
@@ -62,7 +61,11 @@ runs:
6261
- name: Check config
6362
working-directory: ${{ github.action_path }}
6463
shell: bash
65-
run: echo "$EXPECTED_CONFIG_FILE_CONTENTS"; ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS"
64+
env:
65+
EXPECTED_CONFIG_FILE_CONTENTS: '${{ inputs.expected-config-file-contents }}'
66+
run: |
67+
echo "EXPECTED_CONFIG_FILE_CONTENTS = $EXPECTED_CONFIG_FILE_CONTENTS"
68+
ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS"
6669
- name: Clean up
6770
shell: bash
6871
if: always()

0 commit comments

Comments
 (0)