Skip to content

Commit

Permalink
PPONP-1178 Bump cosign to v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mmieszczak committed Oct 9, 2023
1 parent aaded90 commit 4cb1ced
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cosign/download/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ inputs:
version:
required: false
description: "Specific release id, selected from https://github.com/sigstore/cosign/releases"
default: "80120049" # v1.13.1
# Find ID by tag:
# curl https://api.github.com/repos/sigstore/cosign/releases | jq '.[] | select(.tag_name == "v2.2.0").id'
default: "119502144" # v2.2.0
runs:
using: "composite"
steps:
- name: Cache cosign binary
id: cache-cosign
uses: actions/cache@v3
with:
path: ~/.local/bin
key: ${{ runner.os }}-cosign-${{ inputs.version }}
- name: "Download binary"
shell: bash
if: steps.cache-cosign.outputs.cache-hit != 'true'
run: |
URL=`curl -s https://api.github.com/repos/sigstore/cosign/releases/${{ inputs.version }} | jq -r '.assets[] | select(.name=="cosign-linux-amd64") | .browser_download_url'`;
wget -q $URL --output-document cosign;
Expand Down

0 comments on commit 4cb1ced

Please sign in to comment.