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
run: yarn misti --min-severity medium /path/to/your/tact.config.json
61
62
```
62
63
64
+
</details>
65
+
63
66
The `yarn misti --min-severity medium /path/to/your/tact.config.json` command will run Misti against your project. If Misti detects any issues that are not suppressed by your configuration, it will return a non-zero exit code, causing the CI pipeline to fail.
64
67
65
68
The `--min-severity medium` will filter out low-priority warnings. You can always run Misti with all the detectors enabled locally in order to get the most comprehensive warnings output: `yarn misti --all-detectors /path/to/your/tact.config.json`
@@ -68,6 +71,88 @@ The `--min-severity medium` will filter out low-priority warnings. You can alway
68
71
69
72
If you find that Misti is too noisy (e.g., detecting issues that are not relevant to your project), you can adjust your Misti configuration file to suppress those warnings. Refer to the [Configuration](./configuration) section for more details on how to customize your settings.
70
73
74
+
### Using SARIF and GitHub Actions
75
+
Additionally, it is possible to integrate Misti with GitHub Actions code scanning using the SARIF output format. After this, the issues found by Misti will be shown in the PR like this:
76
+
77
+

78
+
79
+
To implement this, adjust the previous GitHub Actions with the following:
80
+
1. Add `--output-format sarif` and `-O /tmp/misti` to the Misti execution command
81
+
2. Add the following commands at the top of your file:
82
+
```yaml
83
+
permissions:
84
+
security-events: write
85
+
actions: read
86
+
contents: read
87
+
```
88
+
3. Add the following action after executing Misti:
0 commit comments