2023-01-18 18:09:37 +01:00
|
|
|
name: Build images
|
|
|
|
|
2023-06-30 13:44:57 +02:00
|
|
|
permissions: {}
|
|
|
|
|
2023-01-18 18:09:37 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-02-09 15:17:23 +01:00
|
|
|
- '*'
|
2023-01-18 18:09:37 +01:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-images:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-06-12 08:11:03 +00:00
|
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
2023-01-18 18:09:37 +01:00
|
|
|
- name: Setup build env
|
|
|
|
uses: ./.github/actions/setup-build-env
|
|
|
|
with:
|
|
|
|
build-cache-key: build-images
|
|
|
|
- name: ko build
|
2023-04-07 14:10:53 +02:00
|
|
|
run: VERSION=${{ github.ref_name }} make ko-build-all
|
2023-01-18 18:09:37 +01:00
|
|
|
- name: Trivy Scan Image
|
2023-06-12 09:08:28 +00:00
|
|
|
uses: aquasecurity/trivy-action@41f05d9ecffa2ed3f1580af306000f734b733e54 # v0.11.2
|
2023-01-18 18:09:37 +01:00
|
|
|
with:
|
|
|
|
scan-type: 'fs'
|
|
|
|
ignore-unfixed: true
|
|
|
|
format: 'sarif'
|
|
|
|
output: 'trivy-results.sarif'
|
|
|
|
severity: 'CRITICAL,HIGH'
|