Skip to content

Bump the all group across 1 directory with 8 updates #1160

Bump the all group across 1 directory with 8 updates

Bump the all group across 1 directory with 8 updates #1160

Workflow file for this run

name: Trivy scanner
on:
workflow_dispatch:
push:
branches:
- master
- main
tags:
- 'v*.*.*'
pull_request:
branches:
- 'main'
schedule:
- cron: '35 12 * * 4'
permissions:
contents: read
jobs:
build:
permissions:
contents: write
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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go 1.x
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: '>=1.20'
check-latest: true
id: go
- name: Build images
run: |
export IMAGE_TAG=${{ github.sha }}
export OUTPUT_TYPE=docker
make docker-build
- name: Run Trivy scanner for controller
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # master
if: success() || failure()
with:
image-ref: 'local/kube-egress-gateway-controller:${{ github.sha }}'
format: 'sarif'
ignore-unfixed: true
output: 'trivy-kube-egress-gateway-controller-results.sarif'
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
timeout: '5m0s'
env:
TRIVY_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-java-db
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
sarif_file: 'trivy-kube-egress-gateway-controller-results.sarif'
category: kube-egress-gateway-controller-image
- name: Run Trivy scanner for daemon
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # master
if: success() || failure()
with:
image-ref: 'local/kube-egress-gateway-daemon:${{ github.sha }}'
format: 'sarif'
ignore-unfixed: true
output: 'trivy-kube-egress-gateway-daemon-results.sarif'
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
timeout: '5m0s'
env:
TRIVY_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-java-db
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
sarif_file: 'trivy-kube-egress-gateway-daemon-results.sarif'
category: kube-egress-gateway-daemon-image
- name: Run Trivy scanner for cnimanager
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # master
if: success() || failure()
with:
image-ref: 'local/kube-egress-gateway-cnimanager:${{ github.sha }}'
format: 'sarif'
ignore-unfixed: true
vuln-type: 'os,library'
output: 'trivy-kube-egress-gateway-cnimanager-results.sarif'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
timeout: '5m0s'
env:
TRIVY_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-java-db
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
sarif_file: 'trivy-kube-egress-gateway-cnimanager-results.sarif'
category: kube-egress-gateway-cnimanager-image
- name: Run Trivy scanner for cni
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # master
if: success() || failure()
with:
image-ref: 'local/kube-egress-gateway-cni:${{ github.sha }}'
format: 'sarif'
ignore-unfixed: true
vuln-type: 'os,library'
output: 'trivy-kube-egress-gateway-cni-results.sarif'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
timeout: '5m0s'
env:
TRIVY_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-java-db
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
sarif_file: 'trivy-kube-egress-gateway-cni-results.sarif'
category: kube-egress-gateway-cni
- name: Run Trivy scanner for cni-ipam
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # master
if: success() || failure()
with:
image-ref: 'local/kube-egress-gateway-cni-ipam:${{ github.sha }}'
format: 'sarif'
ignore-unfixed: true
vuln-type: 'os,library'
output: 'trivy-kube-egress-gateway-cni-ipam-results.sarif'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
timeout: '5m0s'
env:
TRIVY_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-java-db
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
sarif_file: 'trivy-kube-egress-gateway-cni-ipam-results.sarif'
category: kube-egress-gateway-cni-ipam
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # master
if: success() || failure()
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'github'
output: 'dependency-results.sbom.json'
scan-ref: '.'
github-pat: ${{ secrets.GITHUB_TOKEN }}
timeout: '5m0s'
env:
TRIVY_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: mcr.microsoft.com/mirror/ghcr/aquasecurity/trivy-java-db