-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub: Nuke broken sigstore cosign container image signing
- Loading branch information
Showing
1 changed file
with
0 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,12 +30,6 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install cosign | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: sigstore/[email protected] | ||
with: | ||
cosign-release: "v2.2.4" | ||
|
||
# Set up BuildKit Docker container builder to be able to build multi-platform images and export cache | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
@@ -63,14 +57,3 @@ jobs: | |
- name: Push container image | ||
if: ${{ github.event_name != 'pull_request' }} | ||
run: docker push ghcr.io/vorburger/dotfiles-fedora | ||
|
||
# Sign the resulting Docker image digest (see https://github.com/sigstore/cosign) | ||
- name: Sign the published Docker image | ||
if: ${{ github.event_name != 'pull_request' }} | ||
env: | ||
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable | ||
TAGS: ${{ steps.meta.outputs.tags }} | ||
DIGEST: ${{ steps.build-and-push.outputs.digest }} | ||
# This step uses the identity token to provision an ephemeral certificate | ||
# against the sigstore community Fulcio instance. | ||
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} |