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:
262262 - name : Fetch CodeQL
263263 uses : ./.github/actions/fetch-codeql
264264
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+
265270 - name : Download Ruby bundle
266271 uses : actions/download-artifact@v3
267272 with :
268273 name : codeql-ruby-bundle
269- path : ${{ runner.temp }}
274+ path : /tmp
270275 - name : Unzip Ruby bundle
271276 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
273278
274279 - name : Run QL test
275280 shell : bash
276281 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/
278283 - name : Create database
279284 shell : bash
280285 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
282287 - name : Analyze database
283288 shell : bash
284289 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