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

Update cosign to v1.2.0 #25

Merged
merged 2 commits into from Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -13,7 +13,7 @@ Add the following entry to your Github workflow YAML file:
```yaml
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.1.0' # optional
cosign-release: 'v1.2.0' # optional
```

Example using a pinned version:
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Install Cosign
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.1.0'
cosign-release: 'v1.2.0'
- name: Check install!
run: cosign version
```
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Expand Up @@ -9,7 +9,7 @@ inputs:
cosign-release:
description: 'Cosign release version to use in the actions.'
required: false
default: 'v1.1.0'
default: 'v1.2.0'
runs:
using: "composite"
steps:
Expand All @@ -20,8 +20,8 @@ runs:
mkdir -p $HOME/.cosign
pushd $HOME/.cosign

bootstrap_version='v1.1.0'
expected_bootstrap_version_digest='c0b66f6948361f7f2c8c569d82d9471f36dd8354cf43f6bba6e578b31944127b'
bootstrap_version='v1.2.0'
expected_bootstrap_version_digest='690e9d6220aa715b61e332a0efefb60f4f4889cb8c0d0195d28a406425d617f0'
curl -L https://storage.googleapis.com/cosign-releases/${bootstrap_version}/cosign-linux-amd64 -o cosign
shaBootstrap=$(sha256sum cosign | cut -d' ' -f1);
if [[ $shaBootstrap != ${expected_bootstrap_version_digest} ]]; then exit 1; fi
Expand Down