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: comment out sign/provenance due to an issue #250

Closed
wants to merge 1 commit into from
Closed
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
71 changes: 36 additions & 35 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,39 +68,40 @@ jobs:
username: ${{ inputs.secret_registry && secrets[inputs.username] || inputs.username }}
password: ${{ secrets[inputs.password] }}

sign:
runs-on: ubuntu-latest
needs: [build]
permissions:
actions: read
id-token: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sign image with cosign
uses: ./.github/workflows/release_sign
with:
image: ${{ format('{0}-{1}', vars[inputs.image], inputs.arch) }}
digest: ${{ needs.build.outputs.digest }}
identity: https://github.com/${{ inputs.org }}/rancher-turtles/.github/workflows/release.yaml@refs/tags/${{ inputs.tag }}
oids-issuer: https://token.actions.githubusercontent.com
registry: ${{ inputs.secret_registry && secrets[inputs.registry] || inputs.registry }}
username: ${{ inputs.secret_registry && secrets[inputs.username] || inputs.username }}
password: ${{ secrets[inputs.password] }}
# NOTE: commented out due to an issue with the v0.3.0 release. This will be fixed in a later patch release.concurrency:
# sign:
# runs-on: ubuntu-latest
# needs: [build]
# permissions:
# actions: read
# id-token: write
# packages: write
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Sign image with cosign
# uses: ./.github/workflows/release_sign
# with:
# image: ${{ format('{0}-{1}', vars[inputs.image], inputs.arch) }}
# digest: ${{ needs.build.outputs.digest }}
# identity: https://github.com/${{ inputs.org }}/rancher-turtles/.github/workflows/release.yaml@refs/tags/${{ inputs.tag }}
# oids-issuer: https://token.actions.githubusercontent.com
# registry: ${{ inputs.secret_registry && secrets[inputs.registry] || inputs.registry }}
# username: ${{ inputs.secret_registry && secrets[inputs.username] || inputs.username }}
# password: ${{ secrets[inputs.password] }}

provenance:
needs: [sign, build]
permissions:
actions: read
id-token: write
packages: write
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.9.0
with:
digest: ${{ needs.build.outputs.digest }}
image: ${{ format('{0}-{1}', vars[inputs.image], inputs.arch) }}
secrets:
registry-username: ${{ inputs.secret_registry && secrets[inputs.username] || inputs.username }}
registry-password: ${{ secrets[inputs.password] }}
# provenance:
# needs: [sign, build]
# permissions:
# actions: read
# id-token: write
# packages: write
# uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v1.9.0
# with:
# digest: ${{ needs.build.outputs.digest }}
# image: ${{ format('{0}-{1}', vars[inputs.image], inputs.arch) }}
# secrets:
# registry-username: ${{ inputs.secret_registry && secrets[inputs.username] || inputs.username }}
# registry-password: ${{ secrets[inputs.password] }}