Skip to content

🌱 Bump the kubernetes group across 1 directory with 5 updates #97

🌱 Bump the kubernetes group across 1 directory with 5 updates

🌱 Bump the kubernetes group across 1 directory with 5 updates #97

Workflow file for this run

name: trivy
on:
pull_request:
types: [opened, edited, synchronize, reopened]
paths:
- "Dockerfile"
- "go.mod"
- "go.sum"
schedule:
# Run weekly on Monday at 08:00 UTC
- cron: "0 8 * * 1"
jobs:
trivy-scan:
name: trivy image scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # tag=v4.2.2
- name: Calculate go version
id: vars
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # tag=v6.4.0
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: Build image
run: |
make docker-build CONTROLLER_IMG_TAG=cluster-api-operator:ci
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # tag=0.36.0
with:
image-ref: "cluster-api-operator:ci"
format: "table"
exit-code: "1"
severity: "CRITICAL,HIGH"
ignore-unfixed: true