Skip to content

Commit 286fd68

Browse files
committed
Use env var for EXPECTED_CONFIG_FILE_CONTENTS
1 parent d3c7d03 commit 286fd68

File tree

1 file changed

+4
-1
lines changed
  • .github/actions/check-codescanning-config

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ 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 }}
5657

5758
- name: Install dependencies
5859
shell: bash
@@ -61,11 +62,13 @@ runs:
6162
- name: Check config
6263
working-directory: ${{ github.action_path }}
6364
shell: bash
64-
run: ts-node ./index.ts "${{ runner.temp }}/user-config.yaml" '${{ inputs.expected-config-file-contents }}'
65+
run: ts-node ./index.ts "${{ runner.temp }}/user-config.yaml" '$EXPECTED_CONFIG_FILE_CONTENTS'
6566

6667
- name: Clean up
6768
shell: bash
6869
if: always()
6970
run: |
7071
rm -rf ${{ runner.temp }}/codescanning-config-cli-test
7172
rm -rf ${{ runner.temp }}/user-config.yaml
73+
rm -rf $RUNNER_TEMP/codescanning-config-cli-test
74+
rm -rf $RUNNER_TEMP/user-config.yaml

0 commit comments

Comments
 (0)