Skip to content

Commit bf343f8

Browse files
committed
Expose trustpub_data field on version APIs
1 parent a0e4c05 commit bf343f8

File tree

25 files changed

+63
-7
lines changed

25 files changed

+63
-7
lines changed

src/snapshots/crates_io__openapi__tests__openapi_snapshot-2.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,13 @@ expression: response.json()
11481148
"null"
11491149
]
11501150
},
1151+
"trustpub_data": {
1152+
"description": "Information about the trusted publisher that published this version, if any.\n\nStatus: **Unstable**\n\nThis field is filled if the version was published via trusted publishing\n(e.g., GitHub Actions) rather than a regular API token.\n\nThe exact structure of this field depends on the `provider` field\ninside it.",
1153+
"type": [
1154+
"object",
1155+
"null"
1156+
]
1157+
},
11511158
"updated_at": {
11521159
"description": "The date and time this version was last updated (i.e. yanked or unyanked).",
11531160
"example": "2019-12-13T13:46:41Z",

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__edition__edition_is_saved-4.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ expression: response.json()
4949
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
5050
"repository": null,
5151
"rust_version": "1.0",
52+
"trustpub_data": null,
5253
"updated_at": "[datetime]",
5354
"yank_message": null,
5455
"yanked": false

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__links__crate_with_links_field-3.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ expression: response.json()
4949
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
5050
"repository": null,
5151
"rust_version": null,
52+
"trustpub_data": null,
5253
"updated_at": "[datetime]",
5354
"yank_message": null,
5455
"yanked": false

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__manifest__boolean_readme-4.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ expression: response.json()
4949
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
5050
"repository": null,
5151
"rust_version": "1.69",
52+
"trustpub_data": null,
5253
"updated_at": "[datetime]",
5354
"yank_message": null,
5455
"yanked": false

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__manifest__lib_and_bin_crate-4.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ expression: response.json()
5252
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
5353
"repository": null,
5454
"rust_version": null,
55+
"trustpub_data": null,
5556
"updated_at": "[datetime]",
5657
"yank_message": null,
5758
"yanked": false

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__trustpub__full_flow-9.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ expression: response.json()
3131
"readme_path": "/api/v1/crates/foo/1.1.0/readme",
3232
"repository": null,
3333
"rust_version": null,
34+
"trustpub_data": {
35+
"provider": "github",
36+
"repository": "rust-lang/foo-rs",
37+
"run_id": "example-run-id",
38+
"sha": "example-sha"
39+
},
3440
"updated_at": "[datetime]",
3541
"yank_message": null,
3642
"yanked": false

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-2.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ expression: json
6262
"description": "description",
6363
"homepage": null,
6464
"documentation": null,
65-
"repository": null
65+
"repository": null,
66+
"trustpub_data": null
6667
}
6768
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-3.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ expression: json
7373
"description": "description",
7474
"homepage": null,
7575
"documentation": null,
76-
"repository": null
76+
"repository": null,
77+
"trustpub_data": null
7778
}
7879
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-4.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ expression: json
7373
"description": "description",
7474
"homepage": null,
7575
"documentation": null,
76-
"repository": null
76+
"repository": null,
77+
"trustpub_data": null
7778
}
7879
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-5.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ expression: json
8484
"description": "description",
8585
"homepage": null,
8686
"documentation": null,
87-
"repository": null
87+
"repository": null,
88+
"trustpub_data": null
8889
}
8990
}

0 commit comments

Comments
 (0)