Skip to content

cli errors out on Fedora 42 and Ubuntu 24.04 on certain .NET projects #328

Description

@sirredbeard

Steps to reproduce:

  1. Install Fedora 42
  2. Install Node with sudo dnf install nodejs
  3. Install cli with sudo npm install -g @herodevs/cli@beta
  4. Go to project folder, e.g. git clone https://github.com/dotnet/runtime --depth 1 --branch v6.0.3 && cd runtime
  5. Run hd scan eol

Expected results:

Get an SBOM

Actual results:

hayden@WDK2023:~/runtime$ hd scan eol
⠋ Generating SBOM*** Found system packages without a version ***
Global Assembly Cache (GAC) dependencies must be included in the project's build output for version detection. Please follow the instructions in the README: https://github.com/CycloneDX/cdxgen?tab=readme-ov-file#including-net-global-assembly-cache-dependencies-in-the-results.
*** Found system packages without a version ***
Global Assembly Cache (GAC) dependencies must be included in the project's build output for version detection. Please follow the instructions in the README: https://github.com/CycloneDX/cdxgen?tab=readme-ov-file#including-net-global-assembly-cache-dependencies-in-the-results.
*** Found system packages without a version ***
Global Assembly Cache (GAC) dependencies must be included in the project's build output for version detection. Please follow the instructions in the README: https://github.com/CycloneDX/cdxgen?tab=readme-ov-file#including-net-global-assembly-cache-dependencies-in-the-results.
*** Found system packages without a version ***
Global Assembly Cache (GAC) dependencies must be included in the project's build output for version detection. Please follow the instructions in the README: https://github.com/CycloneDX/cdxgen?tab=readme-ov-file#including-net-global-assembly-cache-dependencies-in-the-results.
*** Found system packages without a version ***
Global Assembly Cache (GAC) dependencies must be included in the project's build output for version detection. Please follow the instructions in the README: https://github.com/CycloneDX/cdxgen?tab=readme-ov-file#including-net-global-assembly-cache-dependencies-in-the-results.

....

✔ Generated SBOM
✖ Scanning failed
 ›   Error: Failed to submit scan to NES. insert into "reports"."result" ("heuristics", "metadata", "purl_id",
 ›   "scan_id") values ($1, $2, $3, $4), ($5, $6, $7, $8), ($9, $10, $11, $12), ($13, $14, $15, $16), ($17, $18, $19,
 ›   $20), ($21, $22, $23, $24), ($25, $26, $27, $28), ($29, $30, $31, $32), ($33, $34, $35, $36), ($37, $38, $39,
 ›   $40), ($41, $42, $43, $44), ($45, $46, $47, $48), ($49, $50, $51, $52), ($53, $54, $55, $56), ($57, $58, $59,
 ›   $60), ($61, $62, $63, $64), ($65, $66, $67, $68), ($69, $70, $71, $72), ($73, $74, $75, $76), ($77, $78, $79,
 ›   $80), ($81, $82, $83, $84), ($85, $86, $87, $88), ($89, $90, $91, $92), ($93, $94, $95, $96), ($97, $98, $99,
 ›   $100), ($101, $102, $103, $104), ($105, $106, $107, $108), ($109, $110, $111, $112), ($113, $114, $115, $116),
 
...

 ›   $30411, $30412), ($30413, $30414, $30415, $30416), ($30417, $30418, $30419, $30420), ($30421, $30422, $30423,
 ›   $30424), ($30425, $30426, $30427, $30428) returning "purl_id", "metadata" - duplicate key value violates unique
 ›   constraint "result_scan_id_purl_id_key"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions