Skip to content

Commit f2840ae

Browse files
Merge branch 'main' into actions-unpinned-tag-floating-immutable
2 parents 29f2c0d + b1200b5 commit f2840ae

173 files changed

Lines changed: 6473 additions & 25096 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/csharp-qltest.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
paths:
66
- "csharp/**"
77
- "shared/**"
8+
- "!shared/tree-sitter-extractor/**"
9+
- "!shared/yeast/**"
10+
- "!shared/yeast-macros/**"
11+
- "!shared/yeast-schema/**"
812
- "misc/bazel/**"
913
- .github/actions/fetch-codeql/action.yml
1014
- codeql-workspace.yml
@@ -16,6 +20,10 @@ on:
1620
paths:
1721
- "csharp/**"
1822
- "shared/**"
23+
- "!shared/tree-sitter-extractor/**"
24+
- "!shared/yeast/**"
25+
- "!shared/yeast-macros/**"
26+
- "!shared/yeast-schema/**"
1927
- "misc/bazel/**"
2028
- .github/workflows/csharp-qltest.yml
2129
- .github/actions/fetch-codeql/action.yml

‎.github/workflows/go-tests.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- "go/**"
66
- "!go/documentation/**"
77
- "shared/**"
8+
- "!shared/tree-sitter-extractor/**"
9+
- "!shared/yeast/**"
10+
- "!shared/yeast-macros/**"
11+
- "!shared/yeast-schema/**"
812
- .github/workflows/go-tests.yml
913
- .github/actions/**
1014
- codeql-workspace.yml

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ jobs:
2424
fetch-depth: 0
2525
- name: Find codeql
2626
id: find-codeql
27-
uses: github/codeql-action/init@main
27+
uses: github/codeql-action/setup-codeql@main
2828
with:
29-
languages: javascript # does not matter
3029
tools: nightly
3130
- uses: ./.github/actions/os-version
3231
id: os_version
@@ -61,7 +60,7 @@ jobs:
6160
- name: Make database and analyze
6261
run: |
6362
./ql/target/release/buramu | tee deprecated.blame # Add a blame file for the extractor to parse.
64-
${CODEQL} database create -l=ql ${DB} --search-path "${{ github.workspace }}"
63+
${CODEQL} database create --threads=0 -l=ql ${DB} --search-path "${{ github.workspace }}"
6564
${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 }}"
6665
env:
6766
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}

‎.github/workflows/ql-for-ql-dataset_measure.yml‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ permissions:
1717

1818
jobs:
1919
measure:
20-
env:
21-
CODEQL_THREADS: 4 # TODO: remove this once it's set by the CLI
2220
strategy:
2321
matrix:
2422
repo:
@@ -29,9 +27,7 @@ jobs:
2927

3028
- name: Find codeql
3129
id: find-codeql
32-
uses: github/codeql-action/init@main
33-
with:
34-
languages: javascript # does not matter
30+
uses: github/codeql-action/setup-codeql@main
3531
- uses: ./.github/actions/os-version
3632
id: os_version
3733
- uses: actions/cache@v3

‎.github/workflows/ql-for-ql-tests.yml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ jobs:
2727
- uses: actions/checkout@v5
2828
- name: Find codeql
2929
id: find-codeql
30-
uses: github/codeql-action/init@main
30+
uses: github/codeql-action/setup-codeql@main
3131
with:
32-
languages: javascript # does not matter
3332
tools: nightly
3433
- uses: ./.github/actions/os-version
3534
id: os_version
@@ -54,7 +53,7 @@ jobs:
5453
key: ql-for-ql-tests
5554
- name: Run QL tests
5655
run: |
57-
"${CODEQL}" test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}" --consistency-queries ql/ql/consistency-queries --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" ql/ql/test
56+
"${CODEQL}" test run --threads=0 --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}" --consistency-queries ql/ql/consistency-queries --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" ql/ql/test
5857
env:
5958
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
6059

@@ -73,9 +72,8 @@ jobs:
7372
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
7473
- name: Find codeql
7574
id: find-codeql
76-
uses: github/codeql-action/init@main
75+
uses: github/codeql-action/setup-codeql@main
7776
with:
78-
languages: javascript # does not matter
7977
tools: nightly
8078
- uses: ./.github/actions/os-version
8179
id: os_version
@@ -102,12 +100,12 @@ jobs:
102100
- name: Run a single QL tests - Unix
103101
if: runner.os != 'Windows'
104102
run: |
105-
"${CODEQL}" test run --check-databases --search-path "${{ github.workspace }}" ql/ql/test/queries/style/DeadCode/DeadCode.qlref
103+
"${CODEQL}" test run --threads=0 --check-databases --search-path "${{ github.workspace }}" ql/ql/test/queries/style/DeadCode/DeadCode.qlref
106104
env:
107105
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
108106
- name: Run a single QL tests - Windows
109107
if: runner.os == 'Windows'
110108
shell: pwsh
111109
run: |
112110
$Env:PATH += ";$(dirname ${{ steps.find-codeql.outputs.codeql-path }})"
113-
codeql test run --check-databases --search-path "${{ github.workspace }}" ql/ql/test/queries/style/DeadCode/DeadCode.qlref
111+
codeql test run --threads=0 --check-databases --search-path "${{ github.workspace }}" ql/ql/test/queries/style/DeadCode/DeadCode.qlref

‎.github/workflows/rust-analysis.yml‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ jobs:
5757
languages: ${{ matrix.language }}
5858
config-file: ./.github/codeql/codeql-config.yml
5959

60-
# TODO: Remove once Rust extractor no longer errors on this file
61-
- name: Remove malformed rust-analyzer parser fixture
62-
shell: bash
63-
run: |
64-
cargo fetch
65-
find "${CARGO_HOME:-$HOME/.cargo}/registry/src" \
66-
-path '*/ra_ap_parser-0.0.352/test_data/lexer/err/incomplete_frontmatter_before_unicode.rs' \
67-
-delete
68-
6960
- name: Autobuild
7061
uses: github/codeql-action/autobuild@main
7162

‎.github/workflows/rust.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- "misc/bazel/**"
88
- "misc/codegen/**"
99
- "shared/**"
10+
- "!shared/yeast/**"
11+
- "!shared/yeast-macros/**"
12+
- "!shared/yeast-schema/**"
1013
- "MODULE.bazel"
1114
- .github/workflows/rust.yml
1215
- .github/actions/**

‎.github/workflows/swift.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- "misc/bazel/**"
88
- "misc/codegen/**"
99
- "shared/**"
10+
- "!shared/tree-sitter-extractor/**"
11+
- "!shared/yeast/**"
12+
- "!shared/yeast-macros/**"
13+
- "!shared/yeast-schema/**"
1014
- "*.bazel*"
1115
- .github/workflows/swift.yml
1216
- .github/actions/**

‎.github/workflows/update-rust-analyzer.lock.yml‎

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/update-rust-analyzer.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ network:
3333
- bazel
3434
- python
3535
steps:
36+
- name: Set up CodeQL
37+
uses: ./.github/actions/fetch-codeql
38+
3639
- name: Configure Git
3740
run: |
3841
git config user.name "github-actions[bot]"

0 commit comments

Comments
 (0)