You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,14 @@ Depending on the project type and the build system used (Make, CMake, etc.), you
29
29
The following examples show simple workflows made up of one job "Analyze project with C/C++test" for Make and CMake based projects. The example assumes that C/C++test is run on a self-hosted runner and the path to `cpptestcli` executable is available on `$PATH`.
30
30
31
31
### Uploading Analysis Results to GitHub
32
-
By default, the `Run C/C++test` action generates analysis reports in SARIF, XML and HTML format.
32
+
By default, the `Run C/C++test` action generates analysis reports in SARIF, XML and HTML format (see also: [Enabling SARIF reports for older versions of C/C++test](#enabling-sarif-reports-for-older-versions-of-cctest)).
33
33
34
34
When you upload the SARIF report to GitHub, the results will be presented as GitHub code scanning alerts. This allows you to review the results of code analysis with Parasoft C/C++test directly on GitHub as part of your project.
35
35
To upload the SARIF report to GitHub, modify your workflow to add the `upload-sarif` action.
36
36
37
+
38
+
39
+
37
40
You can also upload other reports (XML, HTML) to GitHub and link them with your workflow by using the `upload-artifact` action.
38
41
39
42
### Examples
@@ -85,6 +88,9 @@ jobs:
85
88
with:
86
89
# For CMake-based projects, use compile_commands.json file as the input to analysis.
87
90
input: build/compile_commands.json
91
+
# Uncomment for C/C++test 2020.2 to generate SARIF report:
0 commit comments