Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update "vulnerabilities in restore" spec #12529

Merged
merged 2 commits into from
Apr 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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