File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -116,21 +116,22 @@ jobs:
116
116
key : ruby-build
117
117
- name : Build Query Pack
118
118
run : |
119
- rm -rf query-packs
120
- codeql pack create ../misc/suite-helpers --output query-packs
121
- codeql pack create ../shared/regex --output query-packs
122
- codeql pack create ../shared/ssa --output query-packs
123
- codeql pack create ../shared/tutorial --output query-packs
124
- codeql pack create ql/lib --output query-packs
125
- codeql pack create -j0 ql/src --output query-packs --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
126
- PACK_FOLDER=$(readlink -f query-packs/codeql/ruby-queries/*)
119
+ PACKS=${{ runner.temp }}/query-packs
120
+ rm -rf $PACKS
121
+ codeql pack create ../misc/suite-helpers --output $PACKS
122
+ codeql pack create ../shared/regex --output $PACKS
123
+ codeql pack create ../shared/ssa --output $PACKS
124
+ codeql pack create ../shared/tutorial --output $PACKS
125
+ codeql pack create ql/lib --output $PACKS
126
+ codeql pack create -j0 ql/src --output $PACKS --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
127
+ PACK_FOLDER=$(readlink -f $PACKS/codeql/ruby-queries/*)
127
128
codeql generate query-help --format=sarifv2.1.0 --output="${PACK_FOLDER}/rules.sarif" ql/src
128
129
(cd ql/src; find queries \( -name '*.qhelp' -o -name '*.rb' -o -name '*.erb' \) -exec bash -c 'mkdir -p "'"${PACK_FOLDER}"'/$(dirname "{}")"' \; -exec cp "{}" "${PACK_FOLDER}/{}" \;)
129
130
- uses : actions/upload-artifact@v3
130
131
with :
131
132
name : codeql-ruby-queries
132
133
path : |
133
- ruby /query-packs/*
134
+ ${{ runner.temp }} /query-packs/*
134
135
retention-days : 1
135
136
136
137
package :
You can’t perform that action at this time.
0 commit comments