Skip to content

Commit c899bee

Browse files
Change: Default cosign version to v2.5.2 (#1649)
1 parent 6956ec4 commit c899bee

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

container-signing/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ jobs:
6565
6666
## Action Configuration
6767
68-
|Input Variable|Description| |
69-
|--------------|-----------|--------|
70-
|image-tags|Set the tags from the docker meta action e.g the output of steps.meta.outputs.tags.|Required|
71-
|image-digest|Set the digest from the docker build and push action e.g the output of steps.build-and-push.outputs.digest.|Required|
72-
|cosign-key-password|Set the cosign key password, if not set a keyless signature will be created.|Optional|
73-
|cosign-key|Set the cosign key, if not set a keyless signature will be created.|Optional|
74-
|cosign-tlog-upload|Turn on or turn off the cosign tlog upload function. Possible options: true/false Default: true|Optional|
68+
| Input Variable | Description | |
69+
|---------------------|-------------------------------------------------------------------------------------------------------------|----------|
70+
| image-tags | Set the tags from the docker meta action e.g the output of steps.meta.outputs.tags. | Required |
71+
| image-digest | Set the digest from the docker build and push action e.g the output of steps.build-and-push.outputs.digest. | Required |
72+
| cosign-key-password | Set the cosign key password, if not set a keyless signature will be created. | Optional |
73+
| cosign-key | Set the cosign key, if not set a keyless signature will be created. | Optional |
74+
| cosign-tlog-upload | Turn on or turn off the cosign tlog upload function. Possible options: true/false Default: true | Optional |
75+
| cosign-release | Cosign version to install. Default is v2.5.2. | Optional |

container-signing/action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ inputs:
1818
skip-installation-on:
1919
description: Skip installation on selected runner. Default is self-hosted-generic.
2020
default: "self-hosted-generic"
21+
cosign-release:
22+
description: Cosign version to install. Default is v2.5.2.
23+
default: "v2.5.2"
2124

2225
branding:
2326
icon: "package"
@@ -29,6 +32,8 @@ runs:
2932
- name: Install cosign
3033
if: ${{ !startsWith(runner.name, inputs.skip-installation-on) }}
3134
uses: sigstore/cosign-installer@ba7bc0a3fef59531c69a25acd34668d6d3fe6f22 # v4.1.0
35+
with:
36+
cosign-release: ${{ inputs.cosign-release }}
3237

3338
- name: Sign container image (public/private keypair)
3439
if: ${{ inputs.cosign-key-password && inputs.cosign-key }}

0 commit comments

Comments
 (0)