mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-04-19 17:16:39 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@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@fbd16365eb88e12433951383f5e99bd901fc618f # v0.12.0
|
|
with:
|
|
scan-type: 'fs'
|
|
ignore-unfixed: true
|
|
format: 'sarif'
|
|
output: 'trivy-results.sarif'
|
|
severity: 'CRITICAL,HIGH'
|
|
- name: Install Cosign
|
|
uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2
|
|
- name: Publish Capsule
|
|
id: publish-capsule
|
|
uses: oliverbaehler/github-actions/ko-publish-image@979018716f7d0cbe8d2711f572b350afad4ef211 # v0.1.1
|
|
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 }} |