Skip to content

ci: gate releases on a vulnerability scan of the shipped bundle (#4300) #500

ci: gate releases on a vulnerability scan of the shipped bundle (#4300)

ci: gate releases on a vulnerability scan of the shipped bundle (#4300) #500

Workflow file for this run

name: 'Build AMD64 images (Master)'
on:
push:
branches:
- master
permissions:
contents: write
security-events: write
id-token: write
actions: read
concurrency:
group: ci-amd64-${{ github.head_ref || github.ref }}-${{ github.repository }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.image_name }}
uses: kairos-io/kairos-factory-action/.github/workflows/reusable-factory.yaml@8952c3a5f4f6255cc63af88cb3637a9684970c8d # v1.1.3
secrets:
registry_username: ${{ secrets.QUAY_USERNAME }}
registry_password: ${{ secrets.QUAY_PASSWORD }}
with:
auroraboot_version: "v0.26.2"
dockerfile_path: "images/Dockerfile"
base_image: ${{ matrix.base_image }}
model: "generic"
arch: "amd64"
version: "auto"
iso: true
grype: true
security_scan_mode: ${{ matrix.security_scan_mode }}
registry_domain: "quay.io"
registry_namespace: "kairos"
registry_repository: "ci-temp-images"
custom_tag_format: "$FLAVOR-$FLAVOR_RELEASE-$VARIANT-$ARCH-$MODEL-$COMMIT_SHA"
custom_artifact_format: "kairos-$FLAVOR-$FLAVOR_RELEASE-$VARIANT-$ARCH-$MODEL"
custom_job_name_format: ${{ matrix.custom_job_name_format }}
image_labels: "quay.expires-after=2w"
summary_artifacts: true
kubernetes_distro: ${{ matrix.kubernetes_distro }}
strategy:
fail-fast: false
matrix:
include:
- image_name: "hadron"
base_image: "ghcr.io/kairos-io/hadron:v0.5.1"
kubernetes_distro: ""
custom_job_name_format: "core-amd64-generic"
# Report-only: the scan still runs and reports, but criticals from
# the upstream base image must not block master builds / tests.
security_scan_mode: "report-only"
- image_name: "hadron"
base_image: "ghcr.io/kairos-io/hadron:v0.5.1"
kubernetes_distro: "k3s"
custom_job_name_format: "standard-amd64-generic-k3s"
# Report-only: k3s CVEs come from upstream and should not block
# master builds / tests. Mirrors release.yaml (PR #4052).
security_scan_mode: "report-only"