Skip to content

Commit 7e7cb04

Browse files
authored
bump sigstore-rekor-types, add NOTE (#981)
Signed-off-by: William Woodruff <william@trailofbits.com>
1 parent d3fa8a3 commit 7e7cb04

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = [
3636
"rfc8785 ~= 0.1.2",
3737
"sigstore-protobuf-specs ~= 0.3.1",
3838
# NOTE(ww): Under active development, so strictly pinned.
39-
"sigstore-rekor-types == 0.0.12",
39+
"sigstore-rekor-types == 0.0.13",
4040
"tuf ~= 4.0",
4141
"platformdirs ~= 4.2",
4242
]

sigstore/sign.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,12 @@ def sign_dsse(
210210

211211
# Create the proposed DSSE log entry
212212
proposed_entry = rekor_types.Dsse(
213-
spec=rekor_types.dsse.DsseV001Schema(
214-
proposed_content=rekor_types.dsse.ProposedContent(
213+
spec=rekor_types.dsse.DsseSchema(
214+
# NOTE: mypy can't see that this kwarg is correct due to two interacting
215+
# behaviors/bugs (one pydantic, one datamodel-codegen):
216+
# See: <https://github.com/pydantic/pydantic/discussions/7418#discussioncomment-9024927>
217+
# See: <https://github.com/koxudaxi/datamodel-code-generator/issues/1903>
218+
proposed_content=rekor_types.dsse.ProposedContent( # type: ignore[call-arg]
215219
envelope=content.to_json(),
216220
verifiers=[b64_cert.decode()],
217221
),

0 commit comments

Comments
 (0)