Bump Trivy to v0.54.1 #9411
Workflow file for this run
This file contains 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: UnitTests | |
on: | |
pull_request: | |
branches: | |
- main | |
- "[0-9]+.[0-9]+" | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
env: | |
K8S_MANIFEST_DIR: deploy | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
manifest_tests: | |
name: Manifest Tests | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 15 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Get diff k8s manifests | |
uses: technote-space/get-diff-action@v6 | |
with: | |
PATTERNS: ${{ env.K8S_MANIFEST_DIR }}/** | |
- name: Run K8s manifest tests | |
if: env.GIT_DIFF | |
uses: stefanprodan/kube-tools@v1 | |
with: | |
kubectl: 1.18.4 | |
kubeval: v0.16.1 | |
command: | | |
kubeval --strict -d ${{ env.K8S_MANIFEST_DIR }} --ignore-missing-schemas --ignored-filename-patterns kustomization,kind,patch,cloudbeat,cloudformation,deployment-manager --skip-kinds ClusterConfig |