|
|
@ -20,7 +20,7 @@ jobs:
|
|
|
|
packages: write # needed for ghcr access
|
|
|
|
packages: write # needed for ghcr access
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
|
|
- name: Unshallow
|
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Setup Go
|
|
|
|
- name: Setup Go
|
|
|
@ -32,21 +32,21 @@ jobs:
|
|
|
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
|
|
|
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
|
|
|
|
- name: Setup Docker Buildx
|
|
|
|
- name: Setup Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
id: buildx
|
|
|
|
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
|
|
|
|
uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3.2.0
|
|
|
|
- name: Setup Syft
|
|
|
|
- name: Setup Syft
|
|
|
|
uses: anchore/sbom-action/download-syft@b6a39da80722a2cb0ef5d197531764a89b5d48c3 # v0.15.8
|
|
|
|
uses: anchore/sbom-action/download-syft@ab5d7b5f48981941c4c5d6bf33aeb98fe3bae38c # v0.15.10
|
|
|
|
- name: Setup Cosign
|
|
|
|
- name: Setup Cosign
|
|
|
|
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
|
|
|
|
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
|
|
|
|
- name: Setup Kustomize
|
|
|
|
- name: Setup Kustomize
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@main
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@main
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
|
|
|
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
registry: ghcr.io
|
|
|
|
username: fluxcdbot
|
|
|
|
username: fluxcdbot
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
|
|
|
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
username: fluxcdbot
|
|
|
|
username: fluxcdbot
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
@ -110,7 +110,7 @@ jobs:
|
|
|
|
id-token: write
|
|
|
|
id-token: write
|
|
|
|
packages: write
|
|
|
|
packages: write
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
|
|
- name: Setup Kustomize
|
|
|
|
- name: Setup Kustomize
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@main
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@main
|
|
|
|
- name: Setup Flux CLI
|
|
|
|
- name: Setup Flux CLI
|
|
|
@ -121,13 +121,13 @@ jobs:
|
|
|
|
VERSION=$(flux version --client | awk '{ print $NF }')
|
|
|
|
VERSION=$(flux version --client | awk '{ print $NF }')
|
|
|
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
|
|
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Login to GHCR
|
|
|
|
- name: Login to GHCR
|
|
|
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
|
|
|
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
registry: ghcr.io
|
|
|
|
username: fluxcdbot
|
|
|
|
username: fluxcdbot
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
- name: Login to DockerHub
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
|
|
|
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
username: fluxcdbot
|
|
|
|
username: fluxcdbot
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
@ -176,7 +176,7 @@ jobs:
|
|
|
|
actions: read # for detecting the Github Actions environment.
|
|
|
|
actions: read # for detecting the Github Actions environment.
|
|
|
|
id-token: write # for creating OIDC tokens for signing.
|
|
|
|
id-token: write # for creating OIDC tokens for signing.
|
|
|
|
contents: write # for uploading attestations to GitHub releases.
|
|
|
|
contents: write # for uploading attestations to GitHub releases.
|
|
|
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.9.0
|
|
|
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.10.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
provenance-name: "provenance.intoto.jsonl"
|
|
|
|
provenance-name: "provenance.intoto.jsonl"
|
|
|
|
base64-subjects: "${{ needs.release-flux-cli.outputs.hashes }}"
|
|
|
|
base64-subjects: "${{ needs.release-flux-cli.outputs.hashes }}"
|
|
|
@ -188,7 +188,7 @@ jobs:
|
|
|
|
actions: read # for detecting the Github Actions environment.
|
|
|
|
actions: read # for detecting the Github Actions environment.
|
|
|
|
id-token: write # for creating OIDC tokens for signing.
|
|
|
|
id-token: write # for creating OIDC tokens for signing.
|
|
|
|
packages: write # for uploading attestations.
|
|
|
|
packages: write # for uploading attestations.
|
|
|
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.9.0
|
|
|
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.10.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
image: ${{ needs.release-flux-cli.outputs.image_url }}
|
|
|
|
image: ${{ needs.release-flux-cli.outputs.image_url }}
|
|
|
|
digest: ${{ needs.release-flux-cli.outputs.image_digest }}
|
|
|
|
digest: ${{ needs.release-flux-cli.outputs.image_digest }}
|
|
|
@ -202,7 +202,7 @@ jobs:
|
|
|
|
actions: read # for detecting the Github Actions environment.
|
|
|
|
actions: read # for detecting the Github Actions environment.
|
|
|
|
id-token: write # for creating OIDC tokens for signing.
|
|
|
|
id-token: write # for creating OIDC tokens for signing.
|
|
|
|
packages: write # for uploading attestations.
|
|
|
|
packages: write # for uploading attestations.
|
|
|
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.9.0
|
|
|
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.10.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
image: ghcr.io/${{ needs.release-flux-cli.outputs.image_url }}
|
|
|
|
image: ghcr.io/${{ needs.release-flux-cli.outputs.image_url }}
|
|
|
|
digest: ${{ needs.release-flux-cli.outputs.image_digest }}
|
|
|
|
digest: ${{ needs.release-flux-cli.outputs.image_digest }}
|
|
|
|