-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: gomod direct detection (#1354)
* First draft Signed-off-by: Prabhu Subramanian <[email protected]> * Work hard to set component scope while parsing go.mod manually Signed-off-by: Prabhu Subramanian <[email protected]> * Work hard to set component scope while parsing go.mod manually Signed-off-by: Prabhu Subramanian <[email protected]> * Mark go toolchains as excluded Signed-off-by: Prabhu Subramanian <[email protected]> * Sort go packages Signed-off-by: Prabhu Subramanian <[email protected]> * Specify version numbers in readme Signed-off-by: Prabhu Subramanian <[email protected]> * Tune down optional scope Signed-off-by: Prabhu Subramanian <[email protected]> * Tune down the list by omitting and excluding obvious false positives Signed-off-by: Prabhu Subramanian <[email protected]> * Added go mod repo tests Signed-off-by: Prabhu Subramanian <[email protected]> --------- Signed-off-by: Prabhu Subramanian <[email protected]>
- Loading branch information
Showing
20 changed files
with
6,958 additions
and
162 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,7 @@ flowchart LR | |
## Installing | ||
|
||
```shell | ||
sudo npm install -g @cyclonedx/cdxgen | ||
|
||
# For CycloneDX 1.4 compatibility use version 8.6.0 or pass the argument `--spec-version 1.4` | ||
sudo npm install -g @cyclonedx/[email protected] | ||
sudo npm install -g @cyclonedx/[email protected] | ||
``` | ||
|
||
If you are a [Homebrew](https://brew.sh/) user, you can also install [cdxgen](https://formulae.brew.sh/formula/cdxgen) via: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,7 @@ cdxgen is available as an npm package, container image, and single application e | |
## Installation | ||
|
||
```shell | ||
sudo npm install -g @cyclonedx/cdxgen | ||
|
||
# For CycloneDX 1.4 compatibility use version 8.6.0 or pass the argument `--spec-version 1.4` | ||
sudo npm install -g @cyclonedx/[email protected] | ||
sudo npm install -g @cyclonedx/[email protected] | ||
``` | ||
|
||
If you are a [Homebrew](https://brew.sh/) user, you can also install [cdxgen](https://formulae.brew.sh/formula/cdxgen) via: | ||
|
@@ -66,10 +63,7 @@ cdxgen -t c -o bom.json | |
## Installation | ||
|
||
```shell | ||
sudo npm install -g @cyclonedx/cdxgen | ||
|
||
# For CycloneDX 1.4 compatibility use version 8.6.0 or pass the argument `--spec-version 1.4` | ||
sudo npm install -g @cyclonedx/[email protected] | ||
sudo npm install -g @cyclonedx/[email protected] | ||
``` | ||
|
||
## Usage | ||
|
@@ -243,7 +237,7 @@ To generate test public/private key pairs, you can run cdxgen by passing the arg | |
Use the bundled `cdx-verify` command, which supports verifying a single signature added at the bom level. | ||
|
||
```shell | ||
npm install -g @cyclonedx/cdxgen | ||
npm install -g @cyclonedx/cdxgen@10.9.6 | ||
cdx-verify -i bom.json --public-key public.key | ||
``` | ||
|
||
|
Oops, something went wrong.