mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-21 21:47:16 +00:00
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.16.1 to 0.17.0. - [Release notes](https://github.com/aquasecurity/trivy-action/releases) - [Commits](https://github.com/aquasecurity/trivy-action/compare/d43c1f16c00cfd3978dde6c07f4bbcf9eb6993ca...84384bd6e777ef152729993b8145ea352e9dd3ef) --- updated-dependencies: - dependency-name: aquasecurity/trivy-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
69 lines
2.4 KiB
YAML
69 lines
2.4 KiB
YAML
name: Publish images
|
|
permissions: {}
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
publish-images:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
packages: write
|
|
id-token: write
|
|
outputs:
|
|
capsule-digest: ${{ steps.publish-capsule.outputs.digest }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- name: Setup caches
|
|
uses: ./.github/actions/setup-caches
|
|
timeout-minutes: 5
|
|
continue-on-error: true
|
|
with:
|
|
build-cache-key: publish-images
|
|
- name: Run Trivy vulnerability (Repo)
|
|
uses: aquasecurity/trivy-action@84384bd6e777ef152729993b8145ea352e9dd3ef # v0.17.0
|
|
with:
|
|
scan-type: 'fs'
|
|
ignore-unfixed: true
|
|
format: 'sarif'
|
|
output: 'trivy-results.sarif'
|
|
severity: 'CRITICAL,HIGH'
|
|
- name: Install Cosign
|
|
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0
|
|
- name: Publish Capsule
|
|
id: publish-capsule
|
|
uses: peak-scale/github-actions/make-ko-publish@38322faabccd75abfa581c435e367d446b6d2c3b # v0.1.0
|
|
with:
|
|
makefile-target: ko-publish-capsule
|
|
registry: ghcr.io
|
|
registry-username: ${{ github.actor }}
|
|
registry-password: ${{ secrets.GITHUB_TOKEN }}
|
|
repository: ${{ github.repository_owner }}
|
|
version: ${{ github.ref_name }}
|
|
sign-image: true
|
|
sbom-name: capsule
|
|
sbom-repository: ghcr.io/${{ github.repository_owner }}/sbom
|
|
signature-repository: ghcr.io/${{ github.repository_owner }}/signatures
|
|
main-path: ./
|
|
env:
|
|
REPOSITORY: ${{ github.repository }}
|
|
generate-capsule-provenance:
|
|
needs: publish-images
|
|
permissions:
|
|
id-token: write # To sign the provenance.
|
|
packages: write # To upload assets to release.
|
|
actions: read # To read the workflow path.
|
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.9.0
|
|
with:
|
|
image: ghcr.io/${{ github.repository_owner }}/capsule
|
|
digest: "${{ needs.publish-images.outputs.capsule-digest }}"
|
|
registry-username: ${{ github.actor }}
|
|
secrets:
|
|
registry-password: ${{ secrets.GITHUB_TOKEN }} |