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

Update push-trigger.yml #1584

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Loading