Skip to content

Commit be49d54

Browse files
authored
Merge pull request #4 from TerabyteTribune/fork-actions
do not run trivy in fork
2 parents c805dc9 + 2a4abfc commit be49d54

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/fork-build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ jobs:
3535
docker-compose -f docker-compose.test.yml up -d wordpress
3636
docker-compose -f docker-compose.test.yml run sut
3737
38-
- name: Run Trivy vulnerability scanner
39-
uses: aquasecurity/trivy-action@master
40-
with:
41-
image-ref: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}"
42-
format: "template"
43-
template: "@/contrib/sarif.tpl"
44-
output: "trivy-results.sarif"
45-
46-
- name: Upload Trivy scan results to GitHub Security tab
47-
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule')
48-
uses: github/codeql-action/upload-sarif@v1
49-
with:
50-
sarif_file: "trivy-results.sarif"
38+
# - name: Run Trivy vulnerability scanner
39+
# uses: aquasecurity/trivy-action@master
40+
# with:
41+
# image-ref: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}"
42+
# format: "template"
43+
# template: "@/contrib/sarif.tpl"
44+
# output: "trivy-results.sarif"
45+
#
46+
# - name: Upload Trivy scan results to GitHub Security tab
47+
# if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule')
48+
# uses: github/codeql-action/upload-sarif@v1
49+
# with:
50+
# sarif_file: "trivy-results.sarif"
5151

5252
- name: Login to Docker Hub
5353
if: (github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule' )) || contains(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)