File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -262,29 +262,28 @@ jobs:
262
262
- name : Fetch CodeQL
263
263
uses : ./.github/actions/fetch-codeql
264
264
265
- # Due to a bug in Actions, we can't use runner.temp here.
265
+ # Due to a bug in Actions, we can't use runner.temp in the run blocks here.
266
266
# https://github.com/actions/runner/issues/2185
267
- - name : Ensure temp directory exists
268
- run : mkdir -p /tmp
269
267
270
268
- name : Download Ruby bundle
271
269
uses : actions/download-artifact@v3
272
270
with :
273
271
name : codeql-ruby-bundle
274
- path : /tmp
272
+ path : ${{ runner.temp }}
275
273
- name : Unzip Ruby bundle
276
274
shell : bash
277
275
run : unzip -q -d /tmp/ruby-bundle /tmp/codeql-ruby-bundle.zip
276
+ run : unzip -q -d "$RUNNER_TEMP"/ruby-bundle "$RUNNER_TEMP"/codeql-ruby-bundle.zip
278
277
279
278
- name : Run QL test
280
279
shell : bash
281
280
run : |
282
- codeql test run --search-path /tmp/ ruby-bundle --additional-packs /tmp /ruby-bundle ruby/ql/test/library-tests/ast/constants/
281
+ codeql test run --search-path "$RUNNER_TEMP"/ ruby-bundle --additional-packs "$RUNNER_TEMP" /ruby-bundle ruby/ql/test/library-tests/ast/constants/
283
282
- name : Create database
284
283
shell : bash
285
284
run : |
286
- codeql database create --search-path /tmp /ruby-bundle --language ruby --source-root ruby/ql/test/library-tests/ast/constants/ ../database
285
+ codeql database create --search-path "$RUNNER_TEMP" /ruby-bundle --language ruby --source-root ruby/ql/test/library-tests/ast/constants/ ../database
287
286
- name : Analyze database
288
287
shell : bash
289
288
run : |
290
- codeql database analyze --search-path /tmp /ruby-bundle --format=sarifv2.1.0 --output=out.sarif ../database ruby-code-scanning.qls
289
+ codeql database analyze --search-path "$RUNNER_TEMP" /ruby-bundle --format=sarifv2.1.0 --output=out.sarif ../database ruby-code-scanning.qls
You can’t perform that action at this time.
0 commit comments