-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds cve-bin-tool scanner to vulnxscan Signed-off-by: Henri Rosten <[email protected]>
- Loading branch information
1 parent
41c5d3a
commit bc4ffb5
Showing
4 changed files
with
141 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
{ nixpkgs ? <nixpkgs> | ||
, pkgs ? import nixpkgs {} | ||
, pythonPackages ? pkgs.python3Packages | ||
, lib ? pkgs.lib | ||
}: | ||
|
||
let | ||
lib4sbom = pythonPackages.buildPythonPackage rec { | ||
version = "0.3.1"; | ||
pname="lib4sbom"; | ||
format = "setuptools"; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "anthonyharrison"; | ||
repo = "lib4sbom"; | ||
rev = "v${version}"; | ||
hash = "sha256-RfJ7V4VRYlceGl4xlTMmm2kHNtxNryb+JHvZQakkM7w="; | ||
}; | ||
propagatedBuildInputs = with pythonPackages; [ | ||
pyyaml | ||
semantic-version | ||
]; | ||
doCheck = false; | ||
}; | ||
in | ||
pythonPackages.buildPythonPackage rec { | ||
version = "3.2.1"; | ||
pname = "cve-bin-tool"; | ||
|
||
src = pkgs.fetchFromGitHub { | ||
owner = "henrirosten"; | ||
repo = pname; | ||
rev = "7b5d0160032e067fcea69194c5c2e29ba4c6ae4d"; | ||
hash = "sha256-y7cQwV8xblcZ13QeRe0IaeXX7dJk5EmvAxjq2RzyEXw="; | ||
}; | ||
propagatedBuildInputs = with pythonPackages; [ | ||
pkgs.google-cloud-sdk | ||
lib4sbom | ||
python-gnupg | ||
jsonschema | ||
plotly | ||
beautifulsoup4 | ||
pyyaml | ||
isort | ||
py | ||
jinja2 | ||
rpmfile | ||
reportlab | ||
zstandard | ||
rich | ||
aiohttp | ||
toml | ||
distro | ||
aiodns | ||
brotlipy | ||
faust-cchardet | ||
pillow | ||
setuptools | ||
xmlschema | ||
cvss | ||
packaging | ||
]; | ||
doCheck = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters