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: docs/security_analysis/index.md
+20
Original file line number
Diff line number
Diff line change
@@ -53,3 +53,23 @@ Nobody likes to wade through a ton of false-positives – [here’s a guide to a
53
53
Since taint analysis is performed separately from other static code analysis, it makes sense to use a separate baseline for it.
54
54
55
55
You can use --use-baseline=PATH option to set a different baseline for taint analysis.
56
+
57
+
## Viewing Results in a User Interface
58
+
59
+
Psalm supports the [SARIF](http://docs.oasis-open.org/sarif/sarif/v2.0/csprd01/sarif-v2.0-csprd01.html) standard for exchanging static analysis results. This enables you to view the results in any SARIF compatible software, including the taint flow.
60
+
61
+
### GitHub Code Scanning
62
+
63
+
[GitHub code scanning](https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/about-code-scanning) can be set up by using the [Psalm GitHub Action](https://github.com/marketplace/actions/psalm-static-analysis-for-php).
64
+
65
+
Alternatively, the generated SARIF file can be manually uploaded as described in [the GitHub documentation](https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/uploading-a-sarif-file-to-github).
66
+
67
+
The results will then be avaible in the "Security" tab of your repository.
68
+
69
+
### Other SARIF compatible software
70
+
71
+
To generate a SARIF report run Psalm with the `--report` flag and a `.sarif` extension. For example:
0 commit comments