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 16, 2024
1 parent e8afd79 commit e8089d1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,36 @@ jobs:
ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }}
RELEASE_DOCKER_HUB: ${{ secrets.RELEASE_DOCKER_HUB }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

trivy_scan:
needs: build-dockers
runs-on: ubuntu-latest
strategy:
matrix:
include:
- SERVICE_NAME: 'kernel-ridgenerator-service'
- SERVICE_NAME: 'kernel-notification-service'
- SERVICE_NAME: 'kernel-pridgenerator-service'
- SERVICE_NAME: 'kernel-idgenerator-service'
- SERVICE_NAME: 'kernel-salt-generator'
- SERVICE_NAME: 'kernel-config-server'
steps:
- name: Set environment variables
run: |
echo "SERVICE_NAME=${{ matrix.SERVICE_NAME }}" >> $GITHUB_ENV
echo "VERSION=latest" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: 'docker.io/${{ env.SERVICE_NAME }}:${{ env.VERSION }}'
format: 'sarif'
output: 'trivy-results-${{ matrix.SERVICE_NAME }}.sarif'

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

0 comments on commit e8089d1

Please sign in to comment.