Merge pull request #423 from kinarashah/v13111 #161
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Trivy scan | |
on: | |
push: | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
trivy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Get base image | |
run: | | |
image=$(grep hyperkube-base Dockerfile | awk '{ print $2 }') | |
echo "HYPERKUBE=${image}" | |
echo "HYPERKUBE=${image}" >> "$GITHUB_ENV" | |
- name: Run Trivy scanner | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: ${{ env.HYPERKUBE }} | |
exit-code: '1' | |
severity: 'CRITICAL,HIGH' |