Skip to content

Commit 4fee29e

Browse files
committedMay 17, 2024
ci: use sarif inspections file and pipe
1 parent 1321ac5 commit 4fee29e

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed
 

‎.config/dotnet-tools.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"jetbrains.resharper.globaltools": {
6-
"version": "2023.3.4",
6+
"version": "2024.1.2",
77
"commands": [
88
"jb"
99
]

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ UpgradeLog.htm
4545

4646
# results file of `jb inspectcode`
4747
inspect.xml
48+
inspect.sarif
4849
example-inspect.xml
4950

5051
# environment-specific app settings

‎bitbucket-pipelines.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ definitions:
1111
- dotnet build --no-restore
1212
- dotnet jb inspectcode --config=inspectcode.config
1313

14-
# create resharper inspections report
15-
- pipe: docker://loremfoobar/resharper-inspections-bitbucket-pipe:1.1.0
14+
# create pipeline report based on sarif file
15+
- pipe: docker://loremfoobar/sarif-bitbucket-pipe:0.1.0
1616
variables:
17-
INSPECTIONS_XML_PATH: "inspect.xml"
17+
SARIF_FILE_PATH: "inspect.sarif"
1818
BITBUCKET_USERNAME: $LFB_BB_USERNAME
1919
BITBUCKET_APP_PASSWORD: $LFB_READ_BB_APP_PASSWORD
2020
DEBUG: "true"

‎inspectcode.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<TargetsForReferences/>
1111
<TargetsForItems/>
1212
<Extensions/>
13-
<OutputFile>inspect.xml</OutputFile>
14-
<OutputFileFormat>Xml</OutputFileFormat>
13+
<OutputFile>inspect.sarif</OutputFile>
14+
<OutputFileFormat>Sarif</OutputFileFormat>
1515
<ParallelJobs>0</ParallelJobs>
1616
<UseAbsolutePaths>false</UseAbsolutePaths>
1717
<SolutionWideAnalysis>true</SolutionWideAnalysis>

0 commit comments

Comments
 (0)