Skip to content

build(deps): bump the all group across 1 directory with 27 updates #10896

build(deps): bump the all group across 1 directory with 27 updates

build(deps): bump the all group across 1 directory with 27 updates #10896

Workflow file for this run

name: Trivy scanner
on:
workflow_dispatch:
push:
branches: [ master, 'release-**' ]
paths:
- '.github/workflows/trivy.yaml'
- 'pkg/**.go'
- '!kubetest2-aks/**.go'
- 'cmd/**.go'
- 'go.*'
- '!vendor/**'
- 'health-probe-proxy/**'
pull_request:
branches: [ master, 'release-**' ]
paths:
- '.github/workflows/trivy.yaml'
- 'pkg/**.go'
- '!kubetest2-aks/**.go'
- 'cmd/**.go'
- 'go.*'
- '!vendor/**'
- 'health-probe-proxy/**'
schedule:
- cron: '0 1 * * *'
permissions:
contents: read
jobs:
build:
permissions:
contents: write # for sbom
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
name: Build
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go 1.x
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: 'go.mod'
check-latest: true
cache-dependency-path: |
go.sum
id: go
- name: Build images
run: |
export TAG=${{ github.sha }}
export IMAGE_TAG=${{ github.sha }}
make build-ccm-image
make build-node-image-linux-amd64
cd health-probe-proxy && make build-health-probe-proxy-image && cd ..
- name: Run Trivy scanner CCM
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # master
with:
image-ref: 'local/azure-cloud-controller-manager:${{ github.sha }}'
format: 'sarif'
output: 'trivy-ccm-results.sarif'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
env:
TRIVY_SKIP_DB_UPDATE: true
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v3.29.5
with:
sarif_file: 'trivy-ccm-results.sarif'
category: azure-cloud-controller-manager-image
- name: Run Trivy scanner CNM
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # master
with:
image-ref: 'local/azure-cloud-node-manager:${{ github.sha }}-linux-amd64'
format: 'sarif'
output: 'trivy-cnm-linux-results.sarif'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
env:
TRIVY_SKIP_DB_UPDATE: true
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v3.29.5
with:
sarif_file: 'trivy-cnm-linux-results.sarif'
category: azure-cloud-node-manager-linux-image
- name: Run Trivy scanner health-probe-proxy
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # master
with:
image-ref: 'local/health-probe-proxy:${{ github.sha }}'
format: 'sarif'
output: 'trivy-health-probe-proxy-linux-results.sarif'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
env:
TRIVY_SKIP_DB_UPDATE: true
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v3.29.5
with:
sarif_file: 'trivy-health-probe-proxy-linux-results.sarif'
category: health-probe-proxy-linux-image
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # master
with:
scan-type: 'fs'
format: 'github'
output: 'dependency-results.sbom.json'
scan-ref: '.'
github-pat: ${{ secrets.GITHUB_TOKEN }}
env:
TRIVY_SKIP_DB_UPDATE: true