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
+29
Original file line number
Diff line number
Diff line change
@@ -522,6 +522,35 @@ jobs:
522
522
sarif_file: 'trivy-results.sarif'
523
523
```
524
524
525
+
### Using Trivy if you don't have code scanning enabled
526
+
527
+
It's also possible to browse a scan result in a workflow summary.
528
+
529
+
This step is especially useful for private repositories without [GitHub Advanced Security](https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security) license.
530
+
531
+
```yaml
532
+
- name: Run Trivy scanner
533
+
uses: aquasecurity/trivy-action@master
534
+
with:
535
+
scan-type: config
536
+
hide-progress: true
537
+
output: trivy.txt
538
+
539
+
- name: Publish Trivy Output to Summary
540
+
run: |
541
+
if [[ -s trivy.txt ]]; then
542
+
{
543
+
echo "### Security Output"
544
+
echo "<details><summary>Click to expand</summary>"
0 commit comments