File tree Expand file tree Collapse file tree 5 files changed +0
-43
lines changed Expand file tree Collapse file tree 5 files changed +0
-43
lines changed Original file line number Diff line number Diff line change 24
24
with :
25
25
inputs : action.yml action.py
26
26
release-signing-artifacts : true
27
- bundle-only : true
Original file line number Diff line number Diff line change 23
23
inputs : ./test/artifact.txt
24
24
- name : Check outputs
25
25
run : |
26
- [[ -f ./test/artifact.txt.sig ]] || exit 1
27
- [[ -f ./test/artifact.txt.crt ]] || exit 1
28
26
[[ -f ./test/artifact.txt.sigstore ]] || exit 1
29
27
30
28
selftest-xfail-invalid-inputs :
67
65
staging : true
68
66
- name : Check outputs
69
67
run : |
70
- [[ -f ./test/artifact.txt.sig ]] || exit 1
71
- [[ -f ./test/artifact.txt.crt ]] || exit 1
72
68
[[ -f ./test/artifact.txt.sigstore ]] || exit 1
73
69
74
70
selftest-glob :
102
98
- name : Verify presence of uploaded files
103
99
run : |
104
100
[[ -f ./artifact.txt ]] || exit 1
105
- [[ -f ./artifact.txt.sig ]] || exit 1
106
- [[ -f ./artifact.txt.crt ]] || exit 1
107
101
[[ -f ./artifact.txt.sigstore ]] || exit 1
108
102
working-directory : ./test/uploaded
109
103
Original file line number Diff line number Diff line change @@ -388,29 +388,6 @@ permissions:
388
388
release-signing-artifacts: true
389
389
` ` `
390
390
391
- # ## `bundle-only`
392
-
393
- **Default**: `false`
394
-
395
- The `bundle-only` setting controls whether or not `sigstore-python` uploads `.crt`
396
- or `.sig` artifacts.
397
-
398
- This setting affects the behavior of the `upload-signing-artifacts` and `release-signing-artifacts`
399
- settings. If neither of those settings are specified, this setting has no effect.
400
-
401
- By default, `.crt` and `.sig` artifacts are uploaded. If enabled, only the `.sigstore`
402
- signing artifact is uploaded.
403
-
404
- Example :
405
-
406
- ` ` ` yaml
407
- - uses: sigstore/[email protected]
408
- with:
409
- inputs: file.txt
410
- upload-signing-artifacts: true
411
- bundle-only: true
412
- ` ` `
413
-
414
391
# ## Internal options
415
392
<details>
416
393
<summary>⚠️ Internal options ⚠️</summary>
Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ def _fatal_help(msg):
190
190
if artifact is not None :
191
191
inputs .append (artifact )
192
192
193
- bundle_only = os .getenv ("GHA_SIGSTORE_PYTHON_BUNDLE_ONLY" ) == "true"
194
193
for input_ in inputs :
195
194
# Forbid things that look like flags. This isn't a security boundary; just
196
195
# a way to prevent (less motivated) users from breaking the action on themselves.
@@ -206,10 +205,6 @@ def _fatal_help(msg):
206
205
# Also upload artifact being signed for.
207
206
signing_artifact_paths .append (str (file_ ))
208
207
209
- if not bundle_only and "--certificate" not in sigstore_sign_args :
210
- signing_artifact_paths .append (f"{ file_ } .crt" )
211
- if not bundle_only and "--signature" not in sigstore_sign_args :
212
- signing_artifact_paths .append (f"{ file_ } .sig" )
213
208
if "--bundle" not in sigstore_sign_args :
214
209
signing_artifact_paths .append (f"{ file_ } .sigstore" )
215
210
Original file line number Diff line number Diff line change @@ -90,13 +90,6 @@ inputs:
90
90
description : " attach all signing artifacts as release assets"
91
91
required : false
92
92
default : false
93
- bundle-only :
94
- description : |
95
- upload only the Sigstore bundle
96
-
97
- has no effect if `upload-signing-artifacts` or `release-signing-artifacts` is not enabled
98
- required : false
99
- default : false
100
93
internal-be-careful-debug :
101
94
description : " run with debug logs (default false)"
102
95
required : false
@@ -131,7 +124,6 @@ runs:
131
124
GHA_SIGSTORE_PYTHON_VERIFY_CERT_IDENTITY : " ${{ inputs.verify-cert-identity }}"
132
125
GHA_SIGSTORE_PYTHON_VERIFY_OIDC_ISSUER : " ${{ inputs.verify-oidc-issuer }}"
133
126
GHA_SIGSTORE_PYTHON_RELEASE_SIGNING_ARTIFACTS : " ${{ inputs.release-signing-artifacts }}"
134
- GHA_SIGSTORE_PYTHON_BUNDLE_ONLY : " ${{ inputs.bundle-only }}"
135
127
GHA_SIGSTORE_PYTHON_INTERNAL_BE_CAREFUL_DEBUG : " ${{ inputs.internal-be-careful-debug }}"
136
128
shell : bash
137
129
You can’t perform that action at this time.
0 commit comments