Skip to content

Commit 55fd288

Browse files
authored
Add support to install v2 and any other cosign release candidate (#105)
* add support to install v2 release candidate Signed-off-by: Hector Fernandez <[email protected]> * chore: set default to latest stable version Signed-off-by: Hector Fernandez <[email protected]> * fix: with cosign v2 add flag --insecure-skip-tlog-verify Signed-off-by: Hector Fernandez <[email protected]> Signed-off-by: Hector Fernandez <[email protected]>
1 parent 651c379 commit 55fd288

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Add the following entry to your Github workflow YAML file:
1515
```yaml
1616
uses: sigstore/cosign-installer@main
1717
with:
18-
cosign-release: 'v1.13.1' # optional
18+
cosign-release: 'v2.0.0-rc.0' # optional
1919
```
2020
2121
Example using a pinned version:
@@ -32,7 +32,7 @@ jobs:
3232
- name: Install Cosign
3333
uses: sigstore/cosign-installer@main
3434
with:
35-
cosign-release: 'v1.13.1'
35+
cosign-release: 'v2.0.0-rc.0'
3636
- name: Check install!
3737
run: cosign version
3838
```

action.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ runs:
6565
esac
6666
}
6767
68-
bootstrap_version='v1.13.1'
69-
bootstrap_linux_amd64_sha='a50651a67b42714d6f1a66eb6773bf214dacae321f04323c0885f6a433051f95'
70-
bootstrap_linux_arm_sha='edc24d49459a73f54e78868a3540e1e54452ad2328c66e1eba8bcd78fcd349fc'
71-
bootstrap_linux_arm64_sha='a7a79a52c7747e2c21554cad4600e6c7130c0429017dd258f9c558d957fa9090'
72-
bootstrap_darwin_amd64_sha='1d164b8b1fcfef1e1870d809edbb9862afd5995cab63687a440b84cca5680ecf'
73-
bootstrap_darwin_arm64_sha='02bef878916be048fd7dcf742105639f53706a59b5b03f4e4eaccc01d05bc7ab'
74-
bootstrap_windows_amd64_sha='78a2774b68b995cc698944f6c235b1c93dcb6d57593a58a565ee7a56d64e4b85'
68+
bootstrap_version='v2.0.0-rc.0'
69+
bootstrap_linux_amd64_sha='8c1cee0fb6d49682983feecefa2b54a33a576fe620c9e88c14891355adf33c4d'
70+
bootstrap_linux_arm_sha='18ad78a61623a764e01e852dbd6757d9147444a43ad1b1d96c3cd3f603c7127d'
71+
bootstrap_linux_arm64_sha='3332e7780817128ac7d8d85db1420376d5aa30816e96c315362f83bf076914e5'
72+
bootstrap_darwin_amd64_sha='975910ce3e556d3d52171b658357bfc20675d4abb2bf2a1ef7a4645fef15197c'
73+
bootstrap_darwin_arm64_sha='55fb6ef3666b53aac2fdc36c8577f4b3731524bc5de5484e1b4b8ba0ac93f732'
74+
bootstrap_windows_amd64_sha='623e6b489250d90ec92ae8f5a098d88d1f82d9c4871d08204bb371431bedddbe'
7575
cosign_executable_name=cosign
7676
7777
trap "popd >/dev/null" EXIT
@@ -196,7 +196,7 @@ runs:
196196
exit 0
197197
fi
198198
199-
semver='^v([0-9]+\.){0,2}(\*|[0-9]+)$'
199+
semver='^v([0-9]+\.){0,2}(\*|[0-9]+)(-?r?c?)(\.[0-9]+)$'
200200
if [[ ${{ inputs.cosign-release }} =~ $semver ]]; then
201201
log_info "Custom cosign version '${{ inputs.cosign-release }}' requested"
202202
else
@@ -243,7 +243,7 @@ runs:
243243
fi
244244
245245
log_info "Using bootstrap cosign to verify signature of desired cosign version"
246-
./cosign verify-blob --key $RELEASE_COSIGN_PUB_KEY --signature ${desired_cosign_filename}.sig cosign_${{ inputs.cosign-release }}
246+
./cosign verify-blob --insecure-skip-tlog-verify --key $RELEASE_COSIGN_PUB_KEY --signature ${desired_cosign_filename}.sig cosign_${{ inputs.cosign-release }}
247247
248248
$SUDO rm cosign
249249
$SUDO mv cosign_${{ inputs.cosign-release }} ${cosign_executable_name}

0 commit comments

Comments
 (0)