Skip to content

Commit 89aec09

Browse files
authored
Merge pull request github#12233 from github/tausbn/add-blame-extractor
2 parents 655aa70 + cd823d7 commit 89aec09

File tree

29 files changed

+22279
-52
lines changed

29 files changed

+22279
-52
lines changed

.github/workflows/ql-for-ql-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
### Build the queries ###
1717
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
1820
- name: Find codeql
1921
id: find-codeql
2022
uses: github/codeql-action/init@v2
@@ -27,7 +29,9 @@ jobs:
2729
id: cache-extractor
2830
uses: actions/cache@v3
2931
with:
30-
path: ql/extractor-pack/
32+
path: |
33+
ql/extractor-pack/
34+
ql/target/release/buramu
3135
key: ${{ runner.os }}-${{ steps.os_version.outputs.version }}-extractor-${{ hashFiles('ql/**/Cargo.lock') }}-${{ hashFiles('ql/**/*.rs') }}
3236
- name: Cache cargo
3337
if: steps.cache-extractor.outputs.cache-hit != 'true'
@@ -50,6 +54,7 @@ jobs:
5054
key: run-ql-for-ql
5155
- name: Make database and analyze
5256
run: |
57+
./ql/target/release/buramu | tee deprecated.blame # Add a blame file for the extractor to parse.
5358
${CODEQL} database create -l=ql --search-path ql/extractor-pack ${DB}
5459
${CODEQL} database analyze -j0 --format=sarif-latest --output=ql-for-ql.sarif ${DB} ql/ql/src/codeql-suites/ql-code-scanning.qls --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
5560
env:
@@ -58,6 +63,7 @@ jobs:
5863
LGTM_INDEX_FILTERS: |
5964
exclude:ql/ql/test
6065
exclude:*/ql/lib/upgrades/
66+
exclude:java/ql/integration-tests
6167
- name: Upload sarif to code-scanning
6268
uses: github/codeql-action/upload-sarif@v2
6369
with:

0 commit comments

Comments
 (0)