Skip to content

ci: add ssh-hardening job running DevSec ssh-baseline #1676

ci: add ssh-hardening job running DevSec ssh-baseline

ci: add ssh-hardening job running DevSec ssh-baseline #1676

Workflow file for this run

name: 'Build ARM images (PR)'
on:
pull_request:
permissions:
contents: write
security-events: write
id-token: write
actions: read
concurrency:
group: ci-pr-arm64-${{ 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@33ba3bfc227294ddd3b3d5ecc7b74f1a9ee468bf # v1.3.0
secrets:
registry_username: ${{ secrets.QUAY_USERNAME }}
registry_password: ${{ secrets.QUAY_PASSWORD }}
strategy:
fail-fast: false
matrix:
include:
- image_name: "hadron"
model: "rpi4"
base_image: "ghcr.io/kairos-io/hadron:v0.5.1"
cleanup: false
grype: true
custom_job_name_format: "core-arm64-rpi4"
- image_name: "hadron"
model: "rpi3"
base_image: "ghcr.io/kairos-io/hadron:v0.5.1"
cleanup: false
grype: true
custom_job_name_format: "core-arm64-rpi3"
- image_name: "hadron"
model: "generic"
base_image: "ghcr.io/kairos-io/hadron:v0.5.1"
cleanup: false
grype: true
custom_job_name_format: "core-arm64-generic"
- image_name: "ubuntu:22.04"
model: "nvidia-jetson-agx-orin"
base_image: "ubuntu:22.04"
cleanup: true
grype: false
custom_job_name_format: ""
- image_name: "ubuntu:22.04"
model: "nvidia-jetson-orin-nx"
base_image: "ubuntu:22.04"
cleanup: true
grype: false # too many vulns under the L4T rootfs
custom_job_name_format: ""
with:
auroraboot_version: "v0.26.2"
dockerfile_path: "images/Dockerfile"
base_image: ${{ matrix.base_image }}
model: ${{ matrix.model }}
arch: "arm64"
version: "auto"
raw: ${{ matrix.model == 'rpi3' || matrix.model == 'rpi4' }} # only produce raw images for rpi3 and rpi4
grype: ${{ matrix.grype }}
# Report-only: the scan still runs and reports, but criticals from the
# upstream base image must not block PRs. Mirrors master / release builds.
security_scan_mode: "report-only"
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=6h"
summary_artifacts: true
cleanup: ${{ matrix.cleanup }}