File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 target/release/ruby-extractor
6161 target/release/ruby-extractor.exe
6262 retention-days : 1
63+ compile-queries :
64+ runs-on : ubuntu-latest
65+ env :
66+ CODEQL_THREADS : 4 # TODO: remove this once it's set by the CLI
67+ steps :
68+ - uses : actions/checkout@v2
69+ - name : Fetch CodeQL
70+ run : |
71+ LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | sort --version-sort | tail -1)
72+ gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
73+ unzip -q codeql-linux64.zip
74+ env :
75+ GITHUB_TOKEN : ${{ github.token }}
76+ - name : Build Query Pack
77+ run : |
78+ codeql/codeql pack create ql/src --output target/packs
79+ codeql/codeql pack create upgrades --output target/packs
80+ cp -r ql/src/codeql-suites target/packs/github_codeql-ruby_*/
81+ - uses : actions/upload-artifact@v2
82+ with :
83+ name : codeql-ruby-queries
84+ path : |
85+ target/packs/*
86+ retention-days : 1
87+
6388 package :
6489 runs-on : ubuntu-latest
6590 needs : build
@@ -95,3 +120,20 @@ jobs:
95120 name : codeql-ruby-pack
96121 path : codeql-ruby.zip
97122 retention-days : 1
123+ - uses : actions/download-artifact@v2
124+ with :
125+ name : codeql-ruby-queries
126+ path : qlpacks
127+ - run : |
128+ echo '{
129+ "provide": [
130+ "ruby/codeql-extractor.yml",
131+ "qlpacks/*/qlpack.yml"
132+ ]
133+ }' > .codeqlmanifest.json
134+ zip -rq codeql-ruby-bundle.zip .codeqlmanifest.json ruby qlpacks
135+ - uses : actions/upload-artifact@v2
136+ with :
137+ name : codeql-ruby-bundle
138+ path : codeql-ruby-bundle.zip
139+ retention-days : 1
You can’t perform that action at this time.
0 commit comments