File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -262,24 +262,29 @@ 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.
266
+ # https://github.com/actions/runner/issues/2185
267
+ - name : Ensure temp directory exists
268
+ run : mkdir -p /tmp
269
+
265
270
- name : Download Ruby bundle
266
271
uses : actions/download-artifact@v3
267
272
with :
268
273
name : codeql-ruby-bundle
269
- path : ${{ runner.temp }}
274
+ path : /tmp
270
275
- name : Unzip Ruby bundle
271
276
shell : bash
272
- run : unzip -q -d "${{ runner.temp }}/ ruby-bundle" "${{ runner.temp }}/ codeql-ruby-bundle.zip"
277
+ run : unzip -q -d /tmp/ ruby-bundle /tmp/ codeql-ruby-bundle.zip
273
278
274
279
- name : Run QL test
275
280
shell : bash
276
281
run : |
277
- codeql test run --search-path "${{ runner.temp }}/ ruby-bundle" --additional-packs "${{ runner.temp }}/ ruby-bundle" ruby/ql/test/library-tests/ast/constants/
282
+ codeql test run --search-path /tmp/ ruby-bundle --additional-packs /tmp/ ruby-bundle ruby/ql/test/library-tests/ast/constants/
278
283
- name : Create database
279
284
shell : bash
280
285
run : |
281
- codeql database create --search-path "${{ runner.temp }}/ ruby-bundle" --language ruby --source-root ruby/ql/test/library-tests/ast/constants/ ../database
286
+ codeql database create --search-path /tmp/ ruby-bundle --language ruby --source-root ruby/ql/test/library-tests/ast/constants/ ../database
282
287
- name : Analyze database
283
288
shell : bash
284
289
run : |
285
- codeql database analyze --search-path "${{ runner.temp }}/ ruby-bundle" --format=sarifv2.1.0 --output=out.sarif ../database ruby-code-scanning.qls
290
+ codeql database analyze --search-path /tmp/ 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