Skip to content

Commit 80ef87e

Browse files
Commit via running ake Sources/security-advisories
1 parent 1c22e1e commit 80ef87e

File tree

2 files changed

+105
-1623
lines changed

2 files changed

+105
-1623
lines changed

Sources/security-advisories/Client.swift

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,9 @@ public struct Client: APIProtocol {
348348
///
349349
/// Lists repository security advisories for an organization.
350350
///
351-
/// To use this endpoint, you must be an owner or security manager for the organization, and you must use an access token with the `repo` scope or `repository_advisories:write` permission.
351+
/// The authenticated user must be an owner or security manager for the organization to use this endpoint.
352+
///
353+
/// OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
352354
///
353355
/// - Remark: HTTP `GET /orgs/{org}/security-advisories`.
354356
/// - Remark: Generated from `#/paths//orgs/{org}/security-advisories/get(security-advisories/list-org-repository-advisories)`.
@@ -508,10 +510,10 @@ public struct Client: APIProtocol {
508510
/// List repository security advisories
509511
///
510512
/// Lists security advisories in a repository.
511-
/// You must authenticate using an access token with the `repo` scope or `repository_advisories:read` permission
512-
/// in order to get published security advisories in a private repository, or any unpublished security advisories that you have access to.
513513
///
514-
/// You can access unpublished security advisories from a repository if you are a security manager or administrator of that repository, or if you are a collaborator on any security advisory.
514+
/// The authenticated user can access unpublished security advisories from a repository if they are a security manager or administrator of that repository, or if they are a collaborator on any security advisory.
515+
///
516+
/// OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:read` scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
515517
///
516518
/// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories`.
517519
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/get(security-advisories/list-repository-advisories)`.
@@ -672,9 +674,10 @@ public struct Client: APIProtocol {
672674
/// Create a repository security advisory
673675
///
674676
/// Creates a new repository security advisory.
675-
/// You must authenticate using an access token with the `repo` scope or `repository_advisories:write` permission to use this endpoint.
676677
///
677-
/// In order to create a draft repository security advisory, you must be a security manager or administrator of that repository.
678+
/// In order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository.
679+
///
680+
/// OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
678681
///
679682
/// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories`.
680683
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)`.
@@ -956,13 +959,14 @@ public struct Client: APIProtocol {
956959
/// Get a repository security advisory
957960
///
958961
/// Get a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
959-
/// You can access any published security advisory on a public repository.
960-
/// You must authenticate using an access token with the `repo` scope or `repository_advisories:read` permission
961-
/// in order to get a published security advisory in a private repository, or any unpublished security advisory that you have access to.
962962
///
963-
/// You can access an unpublished security advisory from a repository if you are a security manager or administrator of that repository, or if you are a
963+
/// Anyone can access any published security advisory on a public repository.
964+
///
965+
/// The authenticated user can access an unpublished security advisory from a repository if they are a security manager or administrator of that repository, or if they are a
964966
/// collaborator on the security advisory.
965967
///
968+
/// OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:read` scope to to get a published security advisory in a private repository, or any unpublished security advisory that the authenticated user has access to.
969+
///
966970
/// - Remark: HTTP `GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}`.
967971
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/get(security-advisories/get-repository-advisory)`.
968972
public func security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_get_hyphen_repository_hyphen_advisory.Output {
@@ -1072,11 +1076,12 @@ public struct Client: APIProtocol {
10721076
/// Update a repository security advisory
10731077
///
10741078
/// Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
1075-
/// You must authenticate using an access token with the `repo` scope or `repository_advisories:write` permission to use this endpoint.
10761079
///
1077-
/// In order to update any security advisory, you must be a security manager or administrator of that repository,
1080+
/// In order to update any security advisory, the authenticated user must be a security manager or administrator of that repository,
10781081
/// or a collaborator on the repository security advisory.
10791082
///
1083+
/// OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
1084+
///
10801085
/// - Remark: HTTP `PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}`.
10811086
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/patch(security-advisories/update-repository-advisory)`.
10821087
public func security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory(_ input: Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Input) async throws -> Operations.security_hyphen_advisories_sol_update_hyphen_repository_hyphen_advisory.Output {
@@ -1220,9 +1225,9 @@ public struct Client: APIProtocol {
12201225
///
12211226
/// You may request a CVE for public repositories, but cannot do so for private repositories.
12221227
///
1223-
/// You must authenticate using an access token with the `repo` scope or `repository_advisories:write` permission to use this endpoint.
1228+
/// In order to request a CVE for a repository security advisory, the authenticated user must be a security manager or administrator of that repository.
12241229
///
1225-
/// In order to request a CVE for a repository security advisory, you must be a security manager or administrator of that repository.
1230+
/// OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint.
12261231
///
12271232
/// - Remark: HTTP `POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve`.
12281233
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve/post(security-advisories/create-repository-advisory-cve-request)`.

0 commit comments

Comments
 (0)