Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test pr output trivy-scan.yml #107

Closed
wants to merge 13 commits into from
9 changes: 8 additions & 1 deletion .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- 'release-1*'
- develop
- '1.2.*'
- master
- patch-1
- MOSIP-35889
pull_request:
branches:
Expand Down Expand Up @@ -41,8 +41,15 @@ jobs:
image-ref: 'docker.io/${{ env.SERVICE_NAME }}:${{ env.VERSION }}'
format: 'sarif'
output: 'trivy-results.sarif'


- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'


- name: Post Trivy scan results as PR comment
uses: marocchino/sticky-pull-request-comment@v2
with:
path: trivy-results.sarif