Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions github/attestations.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ type Attestation struct {
// The attestation's Sigstore Bundle.
// Refer to the sigstore bundle specification for more info:
// https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto
//
// Deprecated: GitHub REST API version 2026-03-10 returns BundleURL instead.
Bundle json.RawMessage `json:"bundle"`
BundleURL *string `json:"bundle_url,omitempty"`
RepositoryID int64 `json:"repository_id"`
}

Expand Down
4 changes: 2 additions & 2 deletions github/repos_attestations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestRepositoriesService_ListAttestations(t *testing.T) {
},
{
"repository_id": 2,
"bundle": {}
"bundle_url": "https://example.com/attestations/2"
}
]
}`)
Expand All @@ -46,7 +46,7 @@ func TestRepositoriesService_ListAttestations(t *testing.T) {
},
{
RepositoryID: 2,
Bundle: []byte(`{}`),
BundleURL: new("https://example.com/attestations/2"),
},
},
}
Expand Down
Loading