This commit is contained in:
Arthur Baars 2021-05-24 12:50:14 +02:00
Родитель 3c80b32ba0
Коммит 78d9191526
1 изменённых файлов: 42 добавлений и 0 удалений

42
.github/workflows/build.yml поставляемый
Просмотреть файл

@ -60,6 +60,31 @@ jobs:
target/release/ruby-extractor
target/release/ruby-extractor.exe
retention-days: 1
compile-queries:
runs-on: ubuntu-latest
env:
CODEQL_THREADS: 4 # TODO: remove this once it's set by the CLI
steps:
- uses: actions/checkout@v2
- name: Fetch CodeQL
run: |
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | sort --version-sort | tail -1)
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
unzip -q codeql-linux64.zip
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Build Query Pack
run: |
codeql/codeql pack create ql/src --output target/packs
codeql/codeql pack create upgrades --output target/packs
cp -r ql/src/codeql-suites target/packs/github_codeql-ruby_*/
- uses: actions/upload-artifact@v2
with:
name: codeql-ruby-queries
path: |
target/packs/*
retention-days: 1
package:
runs-on: ubuntu-latest
needs: build
@ -95,3 +120,20 @@ jobs:
name: codeql-ruby-pack
path: codeql-ruby.zip
retention-days: 1
- uses: actions/download-artifact@v2
with:
name: codeql-ruby-queries
path: qlpacks
- run: |
echo '{
"provide": [
"ruby/codeql-extractor.yml",
"qlpacks/*/qlpack.yml"
]
}' > .codeqlmanifest.json
zip -rq codeql-ruby-bundle.zip .codeqlmanifest.json ruby qlpacks
- uses: actions/upload-artifact@v2
with:
name: codeql-ruby-bundle
path: codeql-ruby-bundle.zip
retention-days: 1