Skip to content

Commit

Permalink
style: lint JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot committed Oct 13, 2022
1 parent 3a19cc7 commit 5ea232c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 66 deletions.
63 changes: 14 additions & 49 deletions payload-examples/api.github.com/dependabot_alert/fixed.payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
"number": 1,
"state": "fixed",
"dependency": {
"package": {
"ecosystem": "pip",
"name": "ansible"
},
"package": { "ecosystem": "pip", "name": "ansible" },
"manifest_path": "path/to/requirements.txt",
"scope": "runtime"
},
Expand All @@ -18,37 +15,22 @@
"description": "A flaw was found in ansible. Credentials, such as secrets, are being disclosed in console log by default and not protected by no_log feature when using those modules. An attacker can take advantage of this information to steal those credentials. The highest threat from this vulnerability is to data confidentiality.",
"vulnerabilities": [
{
"package": {
"ecosystem": "pip",
"name": "ansible"
},
"package": { "ecosystem": "pip", "name": "ansible" },
"severity": "medium",
"vulnerable_version_range": ">= 2.9.0, < 2.9.18",
"first_patched_version": {
"identifier": "2.9.18"
}
"first_patched_version": { "identifier": "2.9.18" }
},
{
"package": {
"ecosystem": "pip",
"name": "ansible"
},
"package": { "ecosystem": "pip", "name": "ansible" },
"severity": "medium",
"vulnerable_version_range": "< 2.8.19",
"first_patched_version": {
"identifier": "2.8.19"
}
"first_patched_version": { "identifier": "2.8.19" }
},
{
"package": {
"ecosystem": "pip",
"name": "ansible"
},
"package": { "ecosystem": "pip", "name": "ansible" },
"severity": "medium",
"vulnerable_version_range": ">= 2.10.0, < 2.10.7",
"first_patched_version": {
"identifier": "2.10.7"
}
"first_patched_version": { "identifier": "2.10.7" }
}
],
"severity": "medium",
Expand All @@ -63,40 +45,23 @@
}
],
"identifiers": [
{
"type": "GHSA",
"value": "GHSA-8f4m-hccc-8qph"
},
{
"type": "CVE",
"value": "CVE-2021-20191"
}
{ "type": "GHSA", "value": "GHSA-8f4m-hccc-8qph" },
{ "type": "CVE", "value": "CVE-2021-20191" }
],
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-20191"
},
{
"url": "https://access.redhat.com/security/cve/cve-2021-20191"
},
{
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=1916813"
}
{ "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-20191" },
{ "url": "https://access.redhat.com/security/cve/cve-2021-20191" },
{ "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1916813" }
],
"published_at": "2021-06-01T17:38:00Z",
"updated_at": "2021-08-12T23:06:00Z",
"withdrawn_at": null
},
"security_vulnerability": {
"package": {
"ecosystem": "pip",
"name": "ansible"
},
"package": { "ecosystem": "pip", "name": "ansible" },
"severity": "medium",
"vulnerable_version_range": "< 2.8.19",
"first_patched_version": {
"identifier": "2.8.19"
}
"first_patched_version": { "identifier": "2.8.19" }
},
"url": "https://api.github.com/repos/octocat/hello-world/dependabot/alerts/1",
"html_url": "/~https://github.com/octocat/hello-world/security/dependabot/1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,5 @@
"type": "User",
"site_admin": false
},
"installation": {
"id": 1,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI="
}
"installation": { "id": 1, "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=" }
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@
"first_patched_version"
],
"properties": {
"package": {
"$ref": "dependabot-alert-package.schema.json"
},
"package": { "$ref": "dependabot-alert-package.schema.json" },
"severity": {
"type": "string",
"description": "The severity of the vulnerability.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
},
"html_url": { "type": "string", "format": "uri" },
"pull_request_url": { "type": "string", "format": "uri" },
"author_association": {
"$ref": "author_association.schema.json"
},
"author_association": { "$ref": "author_association.schema.json" },
"_links": {
"type": "object",
"required": ["html", "pull_request"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"description": "A CWE weakness assigned to the advisory.",
"required": ["cwe_id", "name"],
"properties": {
"cwe_id": {
"type": "string",
"description": "The unique CWE ID."
},
"cwe_id": { "type": "string", "description": "The unique CWE ID." },
"name": {
"type": "string",
"description": "The short, plain text name of the CWE."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
"fixed_at": { "type": "null" },
"dismissed_at": { "type": "null" },
"dismissed_by": { "type": "null" },
"dismissed_reason": {
"type": "null"
},
"dismissed_reason": { "type": "null" },
"dismissed_comment": { "type": "null" }
},
"tsAdditionalProperties": false
Expand Down

0 comments on commit 5ea232c

Please sign in to comment.