You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/security-advisories/Client.swift
+19-14Lines changed: 19 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -348,7 +348,9 @@ public struct Client: APIProtocol {
348
348
///
349
349
/// Lists repository security advisories for an organization.
350
350
///
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.
/// - Remark: Generated from `#/paths//orgs/{org}/security-advisories/get(security-advisories/list-org-repository-advisories)`.
@@ -508,10 +510,10 @@ public struct Client: APIProtocol {
508
510
/// List repository security advisories
509
511
///
510
512
/// 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.
513
513
///
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.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/security-advisories/post(security-advisories/create-repository-advisory)`.
@@ -956,13 +959,14 @@ public struct Client: APIProtocol {
956
959
/// Get a repository security advisory
957
960
///
958
961
/// 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.
962
962
///
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
964
966
/// collaborator on the security advisory.
965
967
///
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.
@@ -1220,9 +1225,9 @@ public struct Client: APIProtocol {
1220
1225
///
1221
1226
/// You may request a CVE for public repositories, but cannot do so for private repositories.
1222
1227
///
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.
1224
1229
///
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.
0 commit comments