File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
.github/actions/check-codescanning-config Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,12 @@ runs:
6161 - name : Check config
6262 working-directory : ${{ github.action_path }}
6363 shell : bash
64- run : ts-node ./index.ts "${{ runner.temp }}/user-config.yaml" '${{ inputs.expected-config-file-contents }}'
65-
64+ env :
65+ EXPECTED_CONFIG_FILE_CONTENTS : ' ${{ inputs.expected-config-file-contents }}'
66+ run : ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS"
6667 - name : Clean up
6768 shell : bash
6869 if : always()
6970 run : |
70- rm -rf ${{ runner.temp }} /codescanning-config-cli-test
71- rm -rf ${{ runner.temp }} /user-config.yaml
71+ rm -rf $RUNNER_TEMP /codescanning-config-cli-test
72+ rm -rf $RUNNER_TEMP /user-config.yaml
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const actualConfig = loadActualConfig()
88
99const rawExpectedConfig = process . argv [ 3 ] . trim ( )
1010if ( ! rawExpectedConfig ) {
11- core . info ( 'No expected configuration provided' )
11+ core . setFailed ( 'No expected configuration provided' )
1212} else {
1313 core . startGroup ( 'Expected generated user config' )
1414 core . info ( yaml . dump ( JSON . parse ( rawExpectedConfig ) ) )
You can’t perform that action at this time.
0 commit comments