mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
vulns: add --fix-available and --no-fix-available flags
This commit is contained in:
@@ -634,7 +634,7 @@ patch do
|
||||
end
|
||||
```
|
||||
|
||||
`resolves` records what the patch fixes: one or more CVE identifiers (`CVE-YYYY-NNNN`), GHSA identifiers (`GHSA-xxxx-xxxx-xxxx`) or issue/PR URLs. CVE identifiers are also inferred automatically from the patch `url`, `apply` paths and `file` path, so a Debian-style `CVE-2016-2399.patch` is picked up without an explicit `resolves`.
|
||||
`resolves` records what the patch fixes: one or more CVE identifiers (`CVE-YYYY-NNNN`), GHSA identifiers (`GHSA-xxxx-xxxx-xxxx`), OSV identifiers (`OSV-YYYY-NNNN`) or issue/PR URLs. CVE identifiers are also inferred automatically from the patch `url`, `apply` paths and `file` path, so a Debian-style `CVE-2016-2399.patch` is picked up without an explicit `resolves`.
|
||||
|
||||
```ruby
|
||||
patch do
|
||||
|
||||
@@ -2557,6 +2557,18 @@ With no arguments, all installed formulae are checked.
|
||||
: Check formulae listed in a Brewfile. Defaults to `./Brewfile`; use
|
||||
`--brewfile=`*`path`* to specify another.
|
||||
|
||||
`--fix-available`
|
||||
|
||||
: Only report vulnerabilities that have a fix available. Note that this may
|
||||
exclude vulnerabilities with fixes available if we cannot determine that the
|
||||
fix is included in the version under consideration.
|
||||
|
||||
`--no-fix-available`
|
||||
|
||||
: Only report vulnerabilities that do not have a fix available. Note that this
|
||||
may include vulnerabilities with fixes available if we cannot determine that
|
||||
the fix is included in the version under consideration.
|
||||
|
||||
`-s`, `--severity`
|
||||
|
||||
: Only report findings at or above: `low`, `medium`, `high`, `critical`.
|
||||
|
||||
Reference in New Issue
Block a user