Filter alerts by open state #1147
Annotations
7 errors
it returns the alert state if it matches all 3:
undefined#L1
HttpError: request to https://api.github.com/graphql failed, reason: Nock: No match for request {
"method": "POST",
"url": "https://api.github.com/graphql",
"headers": {
"accept": [
"application/vnd.github.v3+json"
],
"user-agent": [
"octokit-core.js/3.6.0 Node.js/20.7.0 (linux; x64)"
],
"authorization": [
"token mock-token"
],
"content-type": [
"application/json; charset=utf-8"
],
"content-length": [
"538"
],
"accept-encoding": [
"gzip,deflate"
]
},
"body": "{\"query\":\"\\n {\\n repository(owner: \\\"dependabot\\\", name: \\\"dependabot\\\") { \\n vulnerabilityAlerts(first: 100, states: [OPEN]) {\\n nodes {\\n vulnerableManifestFilename\\n vulnerableManifestPath\\n vulnerableRequirements\\n state\\n securityVulnerability { \\n package { name } \\n }\\n securityAdvisory { \\n cvss { score }\\n ghsaId \\n }\\n }\\n }\\n }\\n }\"}"
}
at node_modules/@octokit/request/dist-src/fetch-wrapper.js:92:15
|
it returns the alert state if it matches 2 and the version is blank:
undefined#L1
HttpError: request to https://api.github.com/graphql failed, reason: Nock: No match for request {
"method": "POST",
"url": "https://api.github.com/graphql",
"headers": {
"accept": [
"application/vnd.github.v3+json"
],
"user-agent": [
"octokit-core.js/3.6.0 Node.js/20.7.0 (linux; x64)"
],
"authorization": [
"token mock-token"
],
"content-type": [
"application/json; charset=utf-8"
],
"content-length": [
"538"
],
"accept-encoding": [
"gzip,deflate"
]
},
"body": "{\"query\":\"\\n {\\n repository(owner: \\\"dependabot\\\", name: \\\"dependabot\\\") { \\n vulnerabilityAlerts(first: 100, states: [OPEN]) {\\n nodes {\\n vulnerableManifestFilename\\n vulnerableManifestPath\\n vulnerableRequirements\\n state\\n securityVulnerability { \\n package { name } \\n }\\n securityAdvisory { \\n cvss { score }\\n ghsaId \\n }\\n }\\n }\\n }\\n }\"}"
}
at node_modules/@octokit/request/dist-src/fetch-wrapper.js:92:15
|
it returns default if it does not match the version:
undefined#L1
HttpError: request to https://api.github.com/graphql failed, reason: Nock: No match for request {
"method": "POST",
"url": "https://api.github.com/graphql",
"headers": {
"accept": [
"application/vnd.github.v3+json"
],
"user-agent": [
"octokit-core.js/3.6.0 Node.js/20.7.0 (linux; x64)"
],
"authorization": [
"token mock-token"
],
"content-type": [
"application/json; charset=utf-8"
],
"content-length": [
"538"
],
"accept-encoding": [
"gzip,deflate"
]
},
"body": "{\"query\":\"\\n {\\n repository(owner: \\\"dependabot\\\", name: \\\"dependabot\\\") { \\n vulnerabilityAlerts(first: 100, states: [OPEN]) {\\n nodes {\\n vulnerableManifestFilename\\n vulnerableManifestPath\\n vulnerableRequirements\\n state\\n securityVulnerability { \\n package { name } \\n }\\n securityAdvisory { \\n cvss { score }\\n ghsaId \\n }\\n }\\n }\\n }\\n }\"}"
}
at node_modules/@octokit/request/dist-src/fetch-wrapper.js:92:15
|
it returns default if it does not match the directory:
undefined#L1
HttpError: request to https://api.github.com/graphql failed, reason: Nock: No match for request {
"method": "POST",
"url": "https://api.github.com/graphql",
"headers": {
"accept": [
"application/vnd.github.v3+json"
],
"user-agent": [
"octokit-core.js/3.6.0 Node.js/20.7.0 (linux; x64)"
],
"authorization": [
"token mock-token"
],
"content-type": [
"application/json; charset=utf-8"
],
"content-length": [
"538"
],
"accept-encoding": [
"gzip,deflate"
]
},
"body": "{\"query\":\"\\n {\\n repository(owner: \\\"dependabot\\\", name: \\\"dependabot\\\") { \\n vulnerabilityAlerts(first: 100, states: [OPEN]) {\\n nodes {\\n vulnerableManifestFilename\\n vulnerableManifestPath\\n vulnerableRequirements\\n state\\n securityVulnerability { \\n package { name } \\n }\\n securityAdvisory { \\n cvss { score }\\n ghsaId \\n }\\n }\\n }\\n }\\n }\"}"
}
at node_modules/@octokit/request/dist-src/fetch-wrapper.js:92:15
|
it returns default if it does not match the name:
undefined#L1
HttpError: request to https://api.github.com/graphql failed, reason: Nock: No match for request {
"method": "POST",
"url": "https://api.github.com/graphql",
"headers": {
"accept": [
"application/vnd.github.v3+json"
],
"user-agent": [
"octokit-core.js/3.6.0 Node.js/20.7.0 (linux; x64)"
],
"authorization": [
"token mock-token"
],
"content-type": [
"application/json; charset=utf-8"
],
"content-length": [
"538"
],
"accept-encoding": [
"gzip,deflate"
]
},
"body": "{\"query\":\"\\n {\\n repository(owner: \\\"dependabot\\\", name: \\\"dependabot\\\") { \\n vulnerabilityAlerts(first: 100, states: [OPEN]) {\\n nodes {\\n vulnerableManifestFilename\\n vulnerableManifestPath\\n vulnerableRequirements\\n state\\n securityVulnerability { \\n package { name } \\n }\\n securityAdvisory { \\n cvss { score }\\n ghsaId \\n }\\n }\\n }\\n }\\n }\"}"
}
at node_modules/@octokit/request/dist-src/fetch-wrapper.js:92:15
|
CI
github-token is not set! Please add 'github-token: "${{ secrets.GITHUB_TOKEN }}"' to your workflow file.
|
CI
Process completed with exit code 1.
|