Skip to content

Commit 84bcc2e

Browse files
authored
Merge branch 'main' into alexdenisov/swift-tracer-integration
2 parents 8591817 + 2374e6b commit 84bcc2e

File tree

150 files changed

+7322
-7340
lines changed

Some content is hidden

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

150 files changed

+7322
-7340
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Setup dotnet
31-
uses: actions/setup-dotnet@v1
31+
uses: actions/setup-dotnet@v2
3232
with:
3333
dotnet-version: 6.0.101
3434

.github/workflows/csv-coverage-metrics.yml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- ".github/workflows/csv-coverage-metrics.yml"
1515

1616
jobs:
17-
publish:
17+
publish-java:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout repository
@@ -31,13 +31,40 @@ jobs:
3131
- name: Capture coverage information
3232
run: |
3333
DATABASE="${{ runner.temp }}/java-database"
34-
codeql database analyze --format=sarif-latest --output=metrics.sarif -- "$DATABASE" ./java/ql/src/Metrics/Summaries/FrameworkCoverage.ql
34+
codeql database analyze --format=sarif-latest --output=metrics-java.sarif -- "$DATABASE" ./java/ql/src/Metrics/Summaries/FrameworkCoverage.ql
3535
- uses: actions/upload-artifact@v3
3636
with:
37-
name: metrics.sarif
38-
path: metrics.sarif
37+
name: metrics-java.sarif
38+
path: metrics-java.sarif
3939
retention-days: 20
4040
- name: Upload SARIF file
4141
uses: github/codeql-action/upload-sarif@v1
4242
with:
43-
sarif_file: metrics.sarif
43+
sarif_file: metrics-java.sarif
44+
45+
publish-csharp:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v3
50+
- name: Setup CodeQL
51+
uses: ./.github/actions/fetch-codeql
52+
- name: Create empty database
53+
run: |
54+
DATABASE="${{ runner.temp }}/csharp-database"
55+
PROJECT="${{ runner.temp }}/csharp-project"
56+
dotnet new classlib --language=C# --output="$PROJECT"
57+
codeql database create "$DATABASE" --language=csharp --source-root="$PROJECT" --command 'dotnet build /t:rebuild csharp-project.csproj /p:UseSharedCompilation=false'
58+
- name: Capture coverage information
59+
run: |
60+
DATABASE="${{ runner.temp }}/csharp-database"
61+
codeql database analyze --format=sarif-latest --output=metrics-csharp.sarif -- "$DATABASE" ./csharp/ql/src/Metrics/Summaries/FrameworkCoverage.ql
62+
- uses: actions/upload-artifact@v3
63+
with:
64+
name: metrics-csharp.sarif
65+
path: metrics-csharp.sarif
66+
retention-days: 20
67+
- name: Upload SARIF file
68+
uses: github/codeql-action/upload-sarif@v1
69+
with:
70+
sarif_file: metrics-csharp.sarif

.github/workflows/csv-coverage-pr-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
git log -1 --format='%H'
4242
working-directory: base
4343
- name: Set up Python 3.8
44-
uses: actions/setup-python@v2
44+
uses: actions/setup-python@v3
4545
with:
4646
python-version: 3.8
4747
- name: Download CodeQL CLI

.github/workflows/csv-coverage-pr-comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Clone self (github/codeql)
2323
uses: actions/checkout@v3
2424
- name: Set up Python 3.8
25-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v3
2626
with:
2727
python-version: 3.8
2828

.github/workflows/csv-coverage-timeseries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
path: codeqlModels
2020
fetch-depth: 0
2121
- name: Set up Python 3.8
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v3
2323
with:
2424
python-version: 3.8
2525
- name: Download CodeQL CLI

.github/workflows/csv-coverage-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
path: ql
2323
fetch-depth: 0
2424
- name: Set up Python 3.8
25-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v3
2626
with:
2727
python-version: 3.8
2828
- name: Download CodeQL CLI

.github/workflows/csv-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
path: codeqlModels
2424
ref: ${{ github.event.inputs.qlModelShaOverride || github.ref }}
2525
- name: Set up Python 3.8
26-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v3
2727
with:
2828
python-version: 3.8
2929
- name: Download CodeQL CLI

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ jobs:
109109

110110
steps:
111111
- uses: actions/checkout@v3
112-
- uses: actions/download-artifact@v2
112+
- uses: actions/download-artifact@v3
113113
with:
114114
name: query-pack-zip
115115
path: query-pack-zip
116-
- uses: actions/download-artifact@v2
116+
- uses: actions/download-artifact@v3
117117
with:
118118
name: extractor-ubuntu-latest
119119
path: linux64
@@ -147,7 +147,7 @@ jobs:
147147

148148
steps:
149149
- name: Download pack
150-
uses: actions/download-artifact@v2
150+
uses: actions/download-artifact@v3
151151
with:
152152
name: codeql-ql-pack
153153
path: ${{ runner.temp }}/codeql-ql-pack-artifact

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
needs: measure
7272
steps:
7373
- uses: actions/checkout@v3
74-
- uses: actions/download-artifact@v2
74+
- uses: actions/download-artifact@v3
7575
with:
7676
name: measurements
7777
path: stats

.github/workflows/query-list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
repository: 'github/codeql-go'
2727
path: codeql-go
2828
- name: Set up Python 3.8
29-
uses: actions/setup-python@v2
29+
uses: actions/setup-python@v3
3030
with:
3131
python-version: 3.8
3232
- name: Download CodeQL CLI

0 commit comments

Comments
 (0)