Skip to content

Commit

Permalink
Update push-trigger.yml
Browse files Browse the repository at this point in the history
Signed-off-by: rajapandi1234 <[email protected]>
  • Loading branch information
rajapandi1234 authored Oct 15, 2024
1 parent 214ff78 commit 11a91d1
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:

sonar_analysis:
needs: build-maven-pre-registration
if: "${{ github.event_name != 'pull_request' }}"
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master
with:
SERVICE_LOCATION: ./pre-registration
Expand All @@ -92,3 +92,28 @@ jobs:
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

trivy_scan:
needs: build-dockers
runs-on: ubuntu-latest
strategy:
matrix:
include:
- SERVICE_NAME: 'pre-registration-application-service'
- SERVICE_NAME: 'pre-registration-batchjob'
- SERVICE_NAME: 'pre-registration-datasync-service'
- SERVICE_NAME: 'pre-registration-captcha-service'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'docker.io/your_dockerhub_namespace/${{ matrix.SERVICE_NAME }}:latest'
format: 'sarif'
output: 'trivy-report-${{ matrix.SERVICE_NAME }}.sarif'
- name: Upload SARIF file
uses: actions/upload-artifact@v3
with:
name: trivy-report-${{ matrix.SERVICE_NAME }}
path: trivy-report-${{ matrix.SERVICE_NAME }}.sarif

0 comments on commit 11a91d1

Please sign in to comment.