Skip to content

Commit 63c8302

Browse files
octokitbotgr2m
authored andcommittedOct 16, 2019
feat: Repository#vulnerabilityAlerts (#226)
1 parent e5be237 commit 63c8302

File tree

2 files changed

+548
-0
lines changed

2 files changed

+548
-0
lines changed
 

Diff for: ‎schema.graphql

+141
Original file line numberDiff line numberDiff line change
@@ -26855,6 +26855,31 @@ type Repository implements Node & ProjectOwner & RegistryPackageOwner & Registry
2685526855
"""
2685626856
viewerSubscription: SubscriptionState
2685726857

26858+
"""
26859+
A list of vulnerability alerts that are on this repository.
26860+
"""
26861+
vulnerabilityAlerts(
26862+
"""
26863+
Returns the elements in the list that come after the specified cursor.
26864+
"""
26865+
after: String
26866+
26867+
"""
26868+
Returns the elements in the list that come before the specified cursor.
26869+
"""
26870+
before: String
26871+
26872+
"""
26873+
Returns the first _n_ elements from the list.
26874+
"""
26875+
first: Int
26876+
26877+
"""
26878+
Returns the last _n_ elements from the list.
26879+
"""
26880+
last: Int
26881+
): RepositoryVulnerabilityAlertConnection
26882+
2685826883
"""
2685926884
A list of users watching the repository.
2686026885
"""
@@ -27849,6 +27874,122 @@ type RepositoryVisibilityChangeEnableAuditEntry implements AuditEntry & Enterpri
2784927874
userUrl: URI
2785027875
}
2785127876

27877+
"""
27878+
A alert for a repository with an affected vulnerability.
27879+
"""
27880+
type RepositoryVulnerabilityAlert implements Node & RepositoryNode {
27881+
"""
27882+
The affected version
27883+
"""
27884+
affectedRange: String! @deprecated(reason: "advisory specific fields are being removed from repositoryVulnerabilityAlert objects Use `securityVulnerability.vulnerableVersionRange` instead. Removal on 2019-10-01 UTC.")
27885+
27886+
"""
27887+
The reason the alert was dismissed
27888+
"""
27889+
dismissReason: String
27890+
27891+
"""
27892+
When was the alert dimissed?
27893+
"""
27894+
dismissedAt: DateTime
27895+
27896+
"""
27897+
The user who dismissed the alert
27898+
"""
27899+
dismisser: User
27900+
27901+
"""
27902+
The external identifier for the vulnerability
27903+
"""
27904+
externalIdentifier: String @deprecated(reason: "advisory specific fields are being removed from repositoryVulnerabilityAlert objects Use `securityAdvisory.identifiers` instead. Removal on 2019-10-01 UTC.")
27905+
27906+
"""
27907+
The external reference for the vulnerability
27908+
"""
27909+
externalReference: String! @deprecated(reason: "advisory specific fields are being removed from repositoryVulnerabilityAlert objects Use `securityAdvisory.references` instead. Removal on 2019-10-01 UTC.")
27910+
27911+
"""
27912+
The fixed version
27913+
"""
27914+
fixedIn: String @deprecated(reason: "advisory specific fields are being removed from repositoryVulnerabilityAlert objects Use `securityVulnerability.firstPatchedVersion` instead. Removal on 2019-10-01 UTC.")
27915+
id: ID!
27916+
27917+
"""
27918+
The affected package
27919+
"""
27920+
packageName: String! @deprecated(reason: "advisory specific fields are being removed from repositoryVulnerabilityAlert objects Use `securityVulnerability.package` instead. Removal on 2019-10-01 UTC.")
27921+
27922+
"""
27923+
The associated repository
27924+
"""
27925+
repository: Repository!
27926+
27927+
"""
27928+
The associated security advisory
27929+
"""
27930+
securityAdvisory: SecurityAdvisory
27931+
27932+
"""
27933+
The associated security vulnerablity
27934+
"""
27935+
securityVulnerability: SecurityVulnerability
27936+
27937+
"""
27938+
The vulnerable manifest filename
27939+
"""
27940+
vulnerableManifestFilename: String!
27941+
27942+
"""
27943+
The vulnerable manifest path
27944+
"""
27945+
vulnerableManifestPath: String!
27946+
27947+
"""
27948+
The vulnerable requirements
27949+
"""
27950+
vulnerableRequirements: String
27951+
}
27952+
27953+
"""
27954+
The connection type for RepositoryVulnerabilityAlert.
27955+
"""
27956+
type RepositoryVulnerabilityAlertConnection {
27957+
"""
27958+
A list of edges.
27959+
"""
27960+
edges: [RepositoryVulnerabilityAlertEdge]
27961+
27962+
"""
27963+
A list of nodes.
27964+
"""
27965+
nodes: [RepositoryVulnerabilityAlert]
27966+
27967+
"""
27968+
Information to aid in pagination.
27969+
"""
27970+
pageInfo: PageInfo!
27971+
27972+
"""
27973+
Identifies the total count of items in the connection.
27974+
"""
27975+
totalCount: Int!
27976+
}
27977+
27978+
"""
27979+
An edge in a connection.
27980+
"""
27981+
type RepositoryVulnerabilityAlertEdge {
27982+
"""
27983+
A cursor for use in pagination.
27984+
"""
27985+
cursor: String!
27986+
27987+
"""
27988+
The item at the end of the edge.
27989+
"""
27990+
node: RepositoryVulnerabilityAlert
27991+
}
27992+
2785227993
"""
2785327994
Autogenerated input type of RequestReviews
2785427995
"""

0 commit comments

Comments
 (0)
Please sign in to comment.