Skip to content

Commit

Permalink
Update "vulnerabilities in restore" spec (#12529)
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkan authored Apr 7, 2023
1 parent 72a2e17 commit 8e92800
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions proposed/2022/vulnerabilities-in-restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Both of these can be achieved by adding a means to understand whether a source s
```json
{
"@id": "https://nikolchevulntest.blob.core.windows.net/newcontainer/vulnerabilityindex.json",
"@type": "VulnerabilityInfo/6.6.0",
"@type": "VulnerabilityInfo/6.7.0",
"comment": "The endpoint for discovering information about vulnerabilities of packages in this package source."
},
```
Expand All @@ -146,7 +146,10 @@ Periodically, the small file's data can be merged into the large file(s), and th

- The vulnerability resource **must** be an array of objects.
- Each object **must** contain:
- `@name`, a user friendly name for the page, **must** be unique.
- `@name`, a short name for the page, used for caching, and has a few restrictions:
- **must** be unique.
- **must** be between 1 and 32 characters long.
- **must** only contain characters `A` to `Z`, `a` to `z`, `0` to `9`, or be `-` or `_`.
- `@id`, the url that contains the data.
- `@updated`, a UTC timestamp when the content at `@id` was updated last.
- `comment`, a user friendly description.
Expand Down Expand Up @@ -355,7 +358,7 @@ For example, an Azure Artifacts source could have this in their index.json:

{
"@id": "https://api.nuget.org/v3/vulnerability.json",
"@type": "VulnerabilityInfo/6.6.0",
"@type": "VulnerabilityInfo/6.7.0",
"comment": "The base data for vulnerability update periodically"
}
]
Expand Down

0 comments on commit 8e92800

Please sign in to comment.