Skip to content

Commit 6b203de

Browse files
authored
Prep 1.0.0 (#41)
* requirements: sigstore ~= 1.0 Signed-off-by: William Woodruff <[email protected]> * README: prep 1.0.0 Signed-off-by: William Woodruff <[email protected]> * action: fix typo Signed-off-by: William Woodruff <[email protected]> * workflows/selftest: use alls-green Signed-off-by: William Woodruff <[email protected]> Signed-off-by: William Woodruff <[email protected]>
1 parent dc2efe5 commit 6b203de

File tree

4 files changed

+46
-24
lines changed

4 files changed

+46
-24
lines changed

.github/workflows/selftest.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,25 @@ jobs:
182182
inputs: ./test/artifact.txt
183183
identity-token: ${{ steps.get-oidc-token.outputs.identity-token }}
184184
staging: true
185+
186+
all-selftests-pass:
187+
if: always()
188+
189+
needs:
190+
- selftest
191+
- selftest-xfail-invalid-inputs
192+
- selftest-staging
193+
- selftest-glob
194+
- selftest-upload-artifacts
195+
- selftest-custom-paths
196+
- selftest-verify
197+
- selftest-xfail-verify-missing-options
198+
- selftest-identity-token
199+
200+
runs-on: ubuntu-latest
201+
202+
steps:
203+
- name: check test jobs
204+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
205+
with:
206+
jobs: ${{ toJSON(needs) }}

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v3
3030
- name: install
3131
run: python -m pip install .
32-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
32+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
3333
with:
3434
inputs: file.txt
3535
```
@@ -53,15 +53,15 @@ provided.
5353
To sign one or more files:
5454

5555
```yaml
56-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
56+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
5757
with:
5858
inputs: file0.txt file1.txt file2.txt
5959
```
6060

6161
The `inputs` argument also supports file globbing:
6262

6363
```yaml
64-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
64+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
6565
with:
6666
inputs: ./path/to/inputs/*.txt
6767
```
@@ -74,7 +74,7 @@ The `identity-token` setting controls the OpenID Connect token provided to Fulci
7474
workflow will use the credentials found in the GitHub Actions environment.
7575

7676
```yaml
77-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
77+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
7878
with:
7979
inputs: file.txt
8080
identity-token: ${{ IDENTITY_TOKEN }} # assigned elsewhere
@@ -90,7 +90,7 @@ Server during OAuth2.
9090
Example:
9191

9292
```yaml
93-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
93+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
9494
with:
9595
inputs: file.txt
9696
oidc-client-id: alternative-sigstore-id
@@ -106,7 +106,7 @@ Connect Server during OAuth2.
106106
Example:
107107

108108
```yaml
109-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
109+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
110110
with:
111111
inputs: file.txt
112112
oidc-client-secret: alternative-sigstore-secret
@@ -122,7 +122,7 @@ when signing multiple input files.
122122
Example:
123123

124124
```yaml
125-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
125+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
126126
with:
127127
inputs: file.txt
128128
signature: custom-signature-filename.sig
@@ -131,7 +131,7 @@ Example:
131131
However, this example is invalid:
132132

133133
```yaml
134-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
134+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
135135
with:
136136
inputs: file0.txt file1.txt file2.txt
137137
signature: custom-signature-filename.sig
@@ -147,7 +147,7 @@ work when signing multiple input files.
147147
Example:
148148

149149
```yaml
150-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
150+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
151151
with:
152152
inputs: file.txt
153153
certificate: custom-certificate-filename.crt
@@ -156,7 +156,7 @@ Example:
156156
However, this example is invalid:
157157

158158
```yaml
159-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
159+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
160160
with:
161161
inputs: file0.txt file1.txt file2.txt
162162
certificate: custom-certificate-filename.crt
@@ -172,7 +172,7 @@ from. This setting cannot be used in combination with the `staging` setting.
172172
Example:
173173

174174
```yaml
175-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
175+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
176176
with:
177177
inputs: file.txt
178178
fulcio-url: https://fulcio.sigstage.dev
@@ -188,7 +188,7 @@ cannot be used in combination with the `staging` setting.
188188
Example:
189189

190190
```yaml
191-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
191+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
192192
with:
193193
inputs: file.txt
194194
rekor-url: https://rekor.sigstage.dev
@@ -204,7 +204,7 @@ in combination with the `staging` setting.
204204
Example:
205205

206206
```yaml
207-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
207+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
208208
with:
209209
inputs: file.txt
210210
ctfe: ./path/to/ctfe.pub
@@ -220,7 +220,7 @@ be used in combination with `staging` setting.
220220
Example:
221221

222222
```yaml
223-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
223+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
224224
with:
225225
inputs: file.txt
226226
ctfe: ./path/to/rekor.pub
@@ -236,7 +236,7 @@ instead of the default production instances.
236236
Example:
237237

238238
```yaml
239-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
239+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
240240
with:
241241
inputs: file.txt
242242
staging: true
@@ -259,7 +259,7 @@ and `verify-oidc-issuer` settings. Failing to pass these will produce an error.
259259
Example:
260260

261261
```yaml
262-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
262+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
263263
with:
264264
inputs: file.txt
265265
verify: true
@@ -282,7 +282,7 @@ This setting may only be used in conjunction with `verify-oidc-issuer`.
282282
Supplying it without `verify-oidc-issuer` will produce an error.
283283

284284
```yaml
285-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
285+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
286286
with:
287287
inputs: file.txt
288288
verify: true
@@ -307,7 +307,7 @@ Supplying it without `verify-cert-identity` will produce an error.
307307
Example:
308308

309309
```yaml
310-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
310+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
311311
with:
312312
inputs: file.txt
313313
verify: true
@@ -329,7 +329,7 @@ workflow artifact retention period is used.
329329
Example:
330330

331331
```yaml
332-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
332+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
333333
with:
334334
inputs: file.txt
335335
upload-signing-artifacts: true
@@ -354,7 +354,7 @@ permissions:
354354
355355
# ...
356356
357-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
357+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
358358
with:
359359
inputs: file.txt
360360
release-signing-artifacts: true
@@ -381,7 +381,7 @@ permissions:
381381
Example:
382382

383383
```yaml
384-
- uses: sigstore/gh-action-sigstore-python@v0.3.0
384+
- uses: sigstore/gh-action-sigstore-python@v1.0.0
385385
with:
386386
inputs: file.txt
387387
internal-be-careful-debug: true

action.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ def _fatal_help(msg):
176176
for file_ in files:
177177
if not file_.is_file():
178178
_fatal_help(f"input {file_} does not look like a file")
179-
if "--output_certificate" not in sigstore_sign_args:
179+
if "--certificate" not in sigstore_sign_args:
180180
signing_artifact_paths.append(f"{file_}.crt")
181-
if "--output_signature" not in sigstore_sign_args:
181+
if "--signature" not in sigstore_sign_args:
182182
signing_artifact_paths.append(f"{file_}.sig")
183183

184184
sigstore_sign_args.extend(files)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sigstore==0.10.0
1+
sigstore ~= 1.0

0 commit comments

Comments
 (0)