Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disable slsa provenance in release workflow #231

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 1 addition & 69 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,40 +101,6 @@ jobs:
image=$(echo ${{ matrix.images.image }} | base64 -d | base64 -d)
cosign verify ${image} --certificate-identity=https://github.com/rancher-sandbox/rancher-turtles/.github/workflows/release.yaml@refs/tags/${{ env.TAG }} --certificate-oidc-issuer=https://token.actions.githubusercontent.com

ghcr-provenance:
needs: [ghcr-sign]
permissions:
actions: read
id-token: write
packages: write
strategy:
matrix:
images: [
{
"image":"${{ needs.build-ghcr.outputs.multiarch_image }}",
"digest":"${{ needs.build-ghcr.outputs.multiarch_digest }}"
},
{
"image":"${{ needs.build-ghcr.outputs.amd64_image }}",
"digest":"${{ needs.build-ghcr.outputs.amd64_digest }}"
},
{
"image":"${{ needs.build-ghcr.outputs.arm64_image }}",
"digest":"${{ needs.build-ghcr.outputs.arm64_digest }}"
},
{
"image":"${{ needs.build-ghcr.outputs.s390x_image }}",
"digest":"${{ needs.build-ghcr.outputs.s390x_digest }}"
}
]
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.9.0
with:
image: $(echo ${{ matrix.images.image }} | base64 -d | base64 -d)
digest: $(echo ${{ matrix.images.digest }} | base64 -d | base64 -d)
secrets:
registry-username: ${{ github.actor }}
registry-password: ${{ secrets.GITHUB_TOKEN }}

build-prod:
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -227,43 +193,9 @@ jobs:
image=$(echo ${{ matrix.images.image }} | base64 -d | base64 -d)
cosign verify ${image} --certificate-identity=https://github.com/rancher-sandbox/rancher-turtles/.github/workflows/release.yaml@refs/tags/${{ env.TAG }} --certificate-oidc-issuer=https://token.actions.githubusercontent.com

prod-provenance:
needs: [prod-sign]
permissions:
actions: read
id-token: write
packages: write
strategy:
matrix:
images: [
{
"image":"${{ needs.build-prod.outputs.multiarch_image }}",
"digest":"${{ needs.build-prod.outputs.multiarch_digest }}"
},
{
"image":"${{ needs.build-prod.outputs.amd64_image }}",
"digest":"${{ needs.build-prod.outputs.amd64_digest }}"
},
{
"image":"${{ needs.build-prod.outputs.arm64_image }}",
"digest":"${{ needs.build-prod.outputs.arm64_digest }}"
},
{
"image":"${{ needs.build-prod.outputs.s390x_image }}",
"digest":"${{ needs.build-prod.outputs.s390x_digest }}"
}
]
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.9.0
with:
image: $(echo ${{ matrix.images.image }} | base64 -d | base64 -d)
digest: $(echo ${{ matrix.images.digest }} | base64 -d | base64 -d)
secrets:
registry-username: ${{ secrets.REGISTRY_USERNAME }}
registry-password: ${{ secrets.REGISTRY_PASSWORD }}

release:
name: Create helm release
needs: [prod-provenance]
needs: [prod-sign]
runs-on: ubuntu-latest
env:
TAG: ${{ github.ref_name }}
Expand Down