Skip to content

Commit 9466100

Browse files
authored
requirements: sigstore ~3.0 (#140)
* requirements: sigstore ~3.0 Signed-off-by: William Woodruff <[email protected]> * selftest: update filenames Signed-off-by: William Woodruff <[email protected]> * action: update another path Signed-off-by: William Woodruff <[email protected]> * action: remove deprecated settings Signed-off-by: William Woodruff <[email protected]> * README: remove old docs Signed-off-by: William Woodruff <[email protected]> --------- Signed-off-by: William Woodruff <[email protected]>
1 parent 26de745 commit 9466100

File tree

5 files changed

+18
-118
lines changed

5 files changed

+18
-118
lines changed

.github/workflows/selftest.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Check outputs
3737
shell: bash
3838
run: |
39-
[[ -f ./test/artifact.txt.sigstore ]] || exit 1
39+
[[ -f ./test/artifact.txt.sigstore.json ]] || exit 1
4040
4141
selftest-whitespace:
4242
strategy:
@@ -65,7 +65,7 @@ jobs:
6565
- name: Check outputs
6666
shell: bash
6767
run: |
68-
[[ -f ./test/artifact.txt.sigstore ]] || exit 1
68+
[[ -f ./test/artifact.txt.sigstore.json ]] || exit 1
6969
[[ -f ./test/white\ space.txt ]] || exit 1
7070
[[ -f ./test/more\ white\ space.txt ]] || exit 1
7171
@@ -96,7 +96,7 @@ jobs:
9696
- name: Check outputs
9797
shell: bash
9898
run: |
99-
[[ -f ./test/artifact.txt.sigstore ]] || exit 1
99+
[[ -f ./test/artifact.txt.sigstore.json ]] || exit 1
100100
101101
selftest-xfail-invalid-inputs:
102102
runs-on: ubuntu-latest
@@ -140,7 +140,7 @@ jobs:
140140
internal-be-careful-debug: true
141141
- name: Check outputs
142142
run: |
143-
[[ -f ./test/artifact.txt.sigstore ]] || exit 1
143+
[[ -f ./test/artifact.txt.sigstore.json ]] || exit 1
144144
145145
selftest-glob:
146146
runs-on: ubuntu-latest
@@ -156,9 +156,9 @@ jobs:
156156
internal-be-careful-debug: true
157157
- name: Check outputs
158158
run: |
159-
[[ -f ./test/artifact.txt.sigstore ]] || exit 1
160-
[[ -f ./test/artifact1.txt.sigstore ]] || exit 1
161-
[[ -f ./test/artifact2.txt.sigstore ]] || exit 1
159+
[[ -f ./test/artifact.txt.sigstore.json ]] || exit 1
160+
[[ -f ./test/artifact1.txt.sigstore.json ]] || exit 1
161+
[[ -f ./test/artifact2.txt.sigstore.json ]] || exit 1
162162
163163
selftest-xfail-glob-input-expansion:
164164
runs-on: ubuntu-latest
@@ -200,14 +200,14 @@ jobs:
200200
internal-be-careful-debug: true
201201
- name: Check outputs
202202
run: |
203-
[[ -f ./test/artifact.txt.sigstore ]] || exit 1
204-
[[ -f ./test/artifact1.txt.sigstore ]] || exit 1
205-
[[ -f ./test/artifact2.txt.sigstore ]] || exit 1
206-
[[ -f ./test/another1.txt.sigstore ]] || exit 1
207-
[[ -f ./test/another2.txt.sigstore ]] || exit 1
208-
[[ -f ./test/subdir/hello1.txt.sigstore ]] || exit 1
209-
[[ -f ./test/subdir/hello2.txt.sigstore ]] || exit 1
210-
[[ -f ./test/subdir/hello3.txt.sigstore ]] || exit 1
203+
[[ -f ./test/artifact.txt.sigstore.json ]] || exit 1
204+
[[ -f ./test/artifact1.txt.sigstore.json ]] || exit 1
205+
[[ -f ./test/artifact2.txt.sigstore.json ]] || exit 1
206+
[[ -f ./test/another1.txt.sigstore.json ]] || exit 1
207+
[[ -f ./test/another2.txt.sigstore.json ]] || exit 1
208+
[[ -f ./test/subdir/hello1.txt.sigstore.json ]] || exit 1
209+
[[ -f ./test/subdir/hello2.txt.sigstore.json ]] || exit 1
210+
[[ -f ./test/subdir/hello3.txt.sigstore.json ]] || exit 1
211211
212212
selftest-upload-artifacts:
213213
runs-on: ubuntu-latest
@@ -229,7 +229,7 @@ jobs:
229229
- name: Verify presence of uploaded files
230230
run: |
231231
[[ -f ./artifact.txt ]] || exit 1
232-
[[ -f ./artifact.txt.sigstore ]] || exit 1
232+
[[ -f ./artifact.txt.sigstore.json ]] || exit 1
233233
working-directory: ./test/uploaded
234234

235235
selftest-custom-paths:

README.md

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -203,70 +203,6 @@ However, this example is invalid:
203203
certificate: custom-bundle.sigstore
204204
```
205205

206-
### `fulcio-url`
207-
208-
**Default**: `https://fulcio.sigstore.dev`
209-
210-
The `fulcio-url` setting controls the Fulcio instance to retrieve the ephemeral signing certificate
211-
from. This setting cannot be used in combination with the `staging` setting.
212-
213-
Example:
214-
215-
```yaml
216-
- uses: sigstore/[email protected]
217-
with:
218-
inputs: file.txt
219-
fulcio-url: https://fulcio.sigstage.dev
220-
```
221-
222-
### `rekor-url`
223-
224-
**Default**: `https://rekor.sigstore.dev`
225-
226-
The `rekor-url` setting controls the Rekor instance to upload the file signature to. This setting
227-
cannot be used in combination with the `staging` setting.
228-
229-
Example:
230-
231-
```yaml
232-
- uses: sigstore/[email protected]
233-
with:
234-
inputs: file.txt
235-
rekor-url: https://rekor.sigstage.dev
236-
```
237-
238-
### `ctfe`
239-
240-
**Default**: `ctfe.pub` (the CTFE key embedded in `sigstore-python`)
241-
242-
The `ctfe` setting is a path to a PEM-encoded public key for the CT log. This setting cannot be used
243-
in combination with the `staging` setting.
244-
245-
Example:
246-
247-
```yaml
248-
- uses: sigstore/[email protected]
249-
with:
250-
inputs: file.txt
251-
ctfe: ./path/to/ctfe.pub
252-
```
253-
254-
### `rekor-root-pubkey`
255-
256-
**Default**: `rekor.pub` (the Rekor key embedded in `sigstore-python`)
257-
258-
The `rekor-root-pubkey` setting is a path to a PEM-encoded public key for Rekor. This setting cannot
259-
be used in combination with `staging` setting.
260-
261-
Example:
262-
263-
```yaml
264-
- uses: sigstore/[email protected]
265-
with:
266-
inputs: file.txt
267-
ctfe: ./path/to/rekor.pub
268-
```
269-
270206
### `staging`
271207

272208
**Default**: `false`

action.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -164,22 +164,6 @@ def _fatal_help(msg):
164164
sigstore_verify_args.extend(["--bundle", bundle])
165165
signing_artifact_paths.append(bundle)
166166

167-
fulcio_url = os.getenv("GHA_SIGSTORE_PYTHON_FULCIO_URL")
168-
if fulcio_url:
169-
sigstore_sign_args.extend(["--fulcio-url", fulcio_url])
170-
171-
rekor_url = os.getenv("GHA_SIGSTORE_PYTHON_REKOR_URL")
172-
if rekor_url:
173-
sigstore_global_args.extend(["--rekor-url", rekor_url])
174-
175-
ctfe = os.getenv("GHA_SIGSTORE_PYTHON_CTFE")
176-
if ctfe:
177-
sigstore_sign_args.extend(["--ctfe", ctfe])
178-
179-
rekor_root_pubkey = os.getenv("GHA_SIGSTORE_PYTHON_REKOR_ROOT_PUBKEY")
180-
if rekor_root_pubkey:
181-
sigstore_global_args.extend(["--rekor-root-pubkey", rekor_root_pubkey])
182-
183167
if os.getenv("GHA_SIGSTORE_PYTHON_STAGING", "false") != "false":
184168
sigstore_global_args.append("--staging")
185169

@@ -229,7 +213,7 @@ def _fatal_help(msg):
229213
signing_artifact_paths.append(str(file_))
230214

231215
if "--bundle" not in sigstore_sign_args:
232-
signing_artifact_paths.append(f"{file_}.sigstore")
216+
signing_artifact_paths.append(f"{file_}.sigstore.json")
233217

234218
sigstore_sign_args.extend([str(f) for f in files])
235219
sigstore_verify_args.extend([str(f) for f in files])

action.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,6 @@ inputs:
4444
description: "write a single Sigstore bundle to the given file; does not work with multiple input files"
4545
required: false
4646
default: ""
47-
fulcio-url:
48-
description: "the Fulcio instance to use (conflicts with `staging`)"
49-
required: false
50-
default: ""
51-
rekor-url:
52-
description: "the Rekor instance to use (conflicts with `staging`)"
53-
required: false
54-
default: ""
55-
ctfe:
56-
description: "a PEM-encoded public key for the CT log (conflicts with `staging`)"
57-
required: false
58-
default: ""
59-
rekor-root-pubkey:
60-
description: "a PEM-encoded root public key for Rekor itself (conflicts with `staging`)"
61-
required: false
62-
default: ""
6347
staging:
6448
description: "use sigstore's staging instances, instead of the default production instances"
6549
required: false
@@ -119,10 +103,6 @@ runs:
119103
GHA_SIGSTORE_PYTHON_BUNDLE: "${{ inputs.bundle }}"
120104
GHA_SIGSTORE_PYTHON_OIDC_CLIENT_ID: "${{ inputs.oidc-client-id }}"
121105
GHA_SIGSTORE_PYTHON_OIDC_CLIENT_SECRET: "${{ inputs.oidc-client-secret }}"
122-
GHA_SIGSTORE_PYTHON_FULCIO_URL: "${{ inputs.fulcio-url }}"
123-
GHA_SIGSTORE_PYTHON_REKOR_URL: "${{ inputs.rekor-url }}"
124-
GHA_SIGSTORE_PYTHON_CTFE: "${{ inputs.ctfe }}"
125-
GHA_SIGSTORE_PYTHON_REKOR_ROOT_PUBKEY: "${{ inputs.rekor-root-pubkey }}"
126106
GHA_SIGSTORE_PYTHON_STAGING: "${{ inputs.staging }}"
127107
GHA_SIGSTORE_PYTHON_VERIFY: "${{ inputs.verify }}"
128108
GHA_SIGSTORE_PYTHON_VERIFY_CERT_IDENTITY: "${{ inputs.verify-cert-identity }}"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sigstore ~= 2.1
1+
sigstore ~= 3.0
22
requests ~= 2.28

0 commit comments

Comments
 (0)