Spaces:
Sleeping
Sleeping
Vatsal Gupta commited on
Update Trivy scan workflow to use @master (#264)
Browse files* Update Trivy scan workflow to use @master
* Add top-level permissions to satisfy Codacy check
* Pin Trivy workflow reference to commit SHA for SonarCloud compliance
.github/workflows/trivy-scan.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Trivy Scan
|
| 2 |
+
on:
|
| 3 |
+
pull_request:
|
| 4 |
+
push:
|
| 5 |
+
branches: ["master", "main"]
|
| 6 |
+
permissions:
|
| 7 |
+
contents: read
|
| 8 |
+
jobs:
|
| 9 |
+
trivy-scan:
|
| 10 |
+
uses: gvatsal60/.github/.github/workflows/trivy-scan.yaml@c75bcee46ecb94ecf49361b9d8a0911708d30ca9
|
| 11 |
+
with:
|
| 12 |
+
dockerfile_exists: true
|