Use $RUNNER_TEMP for good measure

`runner.temp` is not user-controlled but we replace it with `$RUNNER_TEMP` in any case.
This commit is contained in:
Angela P Wen
2025-02-24 12:35:51 -08:00
parent 286fd68a67
commit c0a8eb9a67

View File

@@ -62,13 +62,11 @@ runs:
- name: Check config
working-directory: ${{ github.action_path }}
shell: bash
run: ts-node ./index.ts "${{ runner.temp }}/user-config.yaml" '$EXPECTED_CONFIG_FILE_CONTENTS'
run: ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" '$EXPECTED_CONFIG_FILE_CONTENTS'
- name: Clean up
shell: bash
if: always()
run: |
rm -rf ${{ runner.temp }}/codescanning-config-cli-test
rm -rf ${{ runner.temp }}/user-config.yaml
rm -rf $RUNNER_TEMP/codescanning-config-cli-test
rm -rf $RUNNER_TEMP/user-config.yaml