Skip to content

Commit dd535e5

Browse files
docs-botrachmarijc-clark
authored
GraphQL schema update (#52784)
Co-authored-by: rachmari <9831992+rachmari@users.noreply.github.com> Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com>
1 parent 4a7c860 commit dd535e5

File tree

5 files changed

+266
-0
lines changed

5 files changed

+266
-0
lines changed

src/graphql/data/fpt/changelog.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
[
2+
{
3+
"schemaChanges": [
4+
{
5+
"title": "The GraphQL schema includes these changes:",
6+
"changes": [
7+
"<p>Type <code>EPSS</code> was added</p>",
8+
"<p>Type <code>UserViewType</code> was added</p>",
9+
"<p>Argument <code>epssPercentage: Float</code> added to field <code>Query.securityAdvisories</code></p>",
10+
"<p>Argument <code>epssPercentile: Float</code> added to field <code>Query.securityAdvisories</code></p>",
11+
"<p>Field <code>epss</code> was added to object type <code>SecurityAdvisory</code></p>",
12+
"<p>Field <code>userViewType</code> was added to object type <code>User</code></p>"
13+
]
14+
}
15+
],
16+
"previewChanges": [],
17+
"upcomingChanges": [],
18+
"date": "2024-10-18"
19+
},
220
{
321
"schemaChanges": [
422
{

src/graphql/data/fpt/schema.docs.graphql

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12662,6 +12662,21 @@ input DraftPullRequestReviewThread {
1266212662
startSide: DiffSide = RIGHT
1266312663
}
1266412664

12665+
"""
12666+
The Exploit Prediction Scoring System
12667+
"""
12668+
type EPSS {
12669+
"""
12670+
The EPSS percentage represents the likelihood of a CVE being exploited.
12671+
"""
12672+
percentage: Float
12673+
12674+
"""
12675+
The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs.
12676+
"""
12677+
percentile: Float
12678+
}
12679+
1266512680
"""
1266612681
Autogenerated input type of EnablePullRequestAutoMerge
1266712682
"""
@@ -40066,6 +40081,16 @@ type Query implements Node {
4006640081
"""
4006740082
classifications: [SecurityAdvisoryClassification!]
4006840083

40084+
"""
40085+
The EPSS percentage to filter advisories by.
40086+
"""
40087+
epssPercentage: Float
40088+
40089+
"""
40090+
The EPSS percentile to filter advisories by.
40091+
"""
40092+
epssPercentile: Float
40093+
4006940094
"""
4007040095
Returns the first _n_ elements from the list.
4007140096
"""
@@ -50013,6 +50038,11 @@ type SecurityAdvisory implements Node {
5001350038
"""
5001450039
description: String!
5001550040

50041+
"""
50042+
The Exploit Prediction Scoring System
50043+
"""
50044+
epss: EPSS
50045+
5001650046
"""
5001750047
The GitHub Security Advisory ID
5001850048
"""
@@ -62697,6 +62727,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
6269762727
"""
6269862728
url: URI!
6269962729

62730+
"""
62731+
Whether the request returns publicly visible information or privately visible information about the user
62732+
"""
62733+
userViewType: UserViewType!
62734+
6270062735
"""
6270162736
Can the viewer pin repositories and gists to the profile?
6270262737
"""
@@ -63300,6 +63335,21 @@ enum UserStatusOrderField {
6330063335
UPDATED_AT
6330163336
}
6330263337

63338+
"""
63339+
Whether a user being viewed contains public or private information.
63340+
"""
63341+
enum UserViewType {
63342+
"""
63343+
A user containing information only visible to the authenticated user.
63344+
"""
63345+
PRIVATE
63346+
63347+
"""
63348+
A user that is publicly visible.
63349+
"""
63350+
PUBLIC
63351+
}
63352+
6330363353
"""
6330463354
A domain that can be verified or approved for an organization or an enterprise.
6330563355
"""

src/graphql/data/fpt/schema.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,22 @@
631631
"href": "/graphql/reference/enums#securityadvisoryclassification",
632632
"description": "<p>A list of classifications to filter advisories by.</p>"
633633
},
634+
{
635+
"name": "epssPercentage",
636+
"type": "Float",
637+
"id": "float",
638+
"kind": "scalars",
639+
"href": "/graphql/reference/scalars#float",
640+
"description": "<p>The EPSS percentage to filter advisories by.</p>"
641+
},
642+
{
643+
"name": "epssPercentile",
644+
"type": "Float",
645+
"id": "float",
646+
"kind": "scalars",
647+
"href": "/graphql/reference/scalars#float",
648+
"description": "<p>The EPSS percentile to filter advisories by.</p>"
649+
},
634650
{
635651
"name": "first",
636652
"type": "Int",
@@ -21047,6 +21063,31 @@
2104721063
}
2104821064
]
2104921065
},
21066+
{
21067+
"name": "EPSS",
21068+
"kind": "objects",
21069+
"id": "epss",
21070+
"href": "/graphql/reference/objects#epss",
21071+
"description": "<p>The Exploit Prediction Scoring System.</p>",
21072+
"fields": [
21073+
{
21074+
"name": "percentage",
21075+
"description": "<p>The EPSS percentage represents the likelihood of a CVE being exploited.</p>",
21076+
"type": "Float",
21077+
"id": "float",
21078+
"kind": "scalars",
21079+
"href": "/graphql/reference/scalars#float"
21080+
},
21081+
{
21082+
"name": "percentile",
21083+
"description": "<p>The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs.</p>",
21084+
"type": "Float",
21085+
"id": "float",
21086+
"kind": "scalars",
21087+
"href": "/graphql/reference/scalars#float"
21088+
}
21089+
]
21090+
},
2105021091
{
2105121092
"name": "Enterprise",
2105221093
"kind": "objects",
@@ -66883,6 +66924,14 @@
6688366924
"kind": "scalars",
6688466925
"href": "/graphql/reference/scalars#string"
6688566926
},
66927+
{
66928+
"name": "epss",
66929+
"description": "<p>The Exploit Prediction Scoring System.</p>",
66930+
"type": "EPSS",
66931+
"id": "epss",
66932+
"kind": "objects",
66933+
"href": "/graphql/reference/objects#epss"
66934+
},
6688666935
{
6688766936
"name": "ghsaId",
6688866937
"description": "<p>The GitHub Security Advisory ID.</p>",
@@ -77601,6 +77650,14 @@
7760177650
"kind": "scalars",
7760277651
"href": "/graphql/reference/scalars#uri"
7760377652
},
77653+
{
77654+
"name": "userViewType",
77655+
"description": "<p>Whether the request returns publicly visible information or privately visible information about the user.</p>",
77656+
"type": "UserViewType!",
77657+
"id": "userviewtype",
77658+
"kind": "enums",
77659+
"href": "/graphql/reference/enums#userviewtype"
77660+
},
7760477661
{
7760577662
"name": "viewerCanChangePinnedItems",
7760677663
"description": "<p>Can the viewer pin repositories and gists to the profile?.</p>",
@@ -89778,6 +89835,23 @@
8977889835
}
8977989836
]
8978089837
},
89838+
{
89839+
"name": "UserViewType",
89840+
"kind": "enums",
89841+
"id": "userviewtype",
89842+
"href": "/graphql/reference/enums#userviewtype",
89843+
"description": "<p>Whether a user being viewed contains public or private information.</p>",
89844+
"values": [
89845+
{
89846+
"name": "PRIVATE",
89847+
"description": "<p>A user containing information only visible to the authenticated user.</p>"
89848+
},
89849+
{
89850+
"name": "PUBLIC",
89851+
"description": "<p>A user that is publicly visible.</p>"
89852+
}
89853+
]
89854+
},
8978189855
{
8978289856
"name": "VerifiableDomainOrderField",
8978389857
"kind": "enums",

src/graphql/data/ghec/schema.docs.graphql

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12662,6 +12662,21 @@ input DraftPullRequestReviewThread {
1266212662
startSide: DiffSide = RIGHT
1266312663
}
1266412664

12665+
"""
12666+
The Exploit Prediction Scoring System
12667+
"""
12668+
type EPSS {
12669+
"""
12670+
The EPSS percentage represents the likelihood of a CVE being exploited.
12671+
"""
12672+
percentage: Float
12673+
12674+
"""
12675+
The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs.
12676+
"""
12677+
percentile: Float
12678+
}
12679+
1266512680
"""
1266612681
Autogenerated input type of EnablePullRequestAutoMerge
1266712682
"""
@@ -40066,6 +40081,16 @@ type Query implements Node {
4006640081
"""
4006740082
classifications: [SecurityAdvisoryClassification!]
4006840083

40084+
"""
40085+
The EPSS percentage to filter advisories by.
40086+
"""
40087+
epssPercentage: Float
40088+
40089+
"""
40090+
The EPSS percentile to filter advisories by.
40091+
"""
40092+
epssPercentile: Float
40093+
4006940094
"""
4007040095
Returns the first _n_ elements from the list.
4007140096
"""
@@ -50013,6 +50038,11 @@ type SecurityAdvisory implements Node {
5001350038
"""
5001450039
description: String!
5001550040

50041+
"""
50042+
The Exploit Prediction Scoring System
50043+
"""
50044+
epss: EPSS
50045+
5001650046
"""
5001750047
The GitHub Security Advisory ID
5001850048
"""
@@ -62697,6 +62727,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
6269762727
"""
6269862728
url: URI!
6269962729

62730+
"""
62731+
Whether the request returns publicly visible information or privately visible information about the user
62732+
"""
62733+
userViewType: UserViewType!
62734+
6270062735
"""
6270162736
Can the viewer pin repositories and gists to the profile?
6270262737
"""
@@ -63300,6 +63335,21 @@ enum UserStatusOrderField {
6330063335
UPDATED_AT
6330163336
}
6330263337

63338+
"""
63339+
Whether a user being viewed contains public or private information.
63340+
"""
63341+
enum UserViewType {
63342+
"""
63343+
A user containing information only visible to the authenticated user.
63344+
"""
63345+
PRIVATE
63346+
63347+
"""
63348+
A user that is publicly visible.
63349+
"""
63350+
PUBLIC
63351+
}
63352+
6330363353
"""
6330463354
A domain that can be verified or approved for an organization or an enterprise.
6330563355
"""

0 commit comments

Comments
 (0)