Update .github/workflows/ruby-build.yml

Co-authored-by: Arthur Baars <aibaars@github.com>
This commit is contained in:
Harry Maclean
2023-03-15 09:28:53 +13:00
committed by GitHub
parent 6dcc884fe1
commit fd43ba0827

View File

@@ -118,13 +118,13 @@ jobs:
run: |
PACKS=${{ runner.temp }}/query-packs
rm -rf $PACKS
codeql pack create ../misc/suite-helpers --output $PACKS
codeql pack create ../shared/regex --output $PACKS
codeql pack create ../shared/ssa --output $PACKS
codeql pack create ../shared/tutorial --output $PACKS
codeql pack create ql/lib --output $PACKS
codeql pack create -j0 ql/src --output $PACKS --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
PACK_FOLDER=$(readlink -f $PACKS/codeql/ruby-queries/*)
codeql pack create ../misc/suite-helpers --output "$PACKS"
codeql pack create ../shared/regex --output "$PACKS"
codeql pack create ../shared/ssa --output "$PACKS"
codeql pack create ../shared/tutorial --output "$PACKS"
codeql pack create ql/lib --output "$PACKS"
codeql pack create -j0 ql/src --output "$PACKS" --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
PACK_FOLDER=$(readlink -f "$PACKS"/codeql/ruby-queries/*)
codeql generate query-help --format=sarifv2.1.0 --output="${PACK_FOLDER}/rules.sarif" ql/src
(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}/{}" \;)
- uses: actions/upload-artifact@v3