fossas / fossa-cli

Fast, portable and reliable dependency analysis for any codebase. Supports license & vulnerability scanning for large monoliths. Language-agnostic; integrates with 20+ build systems.
https://fossa.com
Other
1.29k stars 173 forks source link

include projectId in --json output #1464

Closed spatten closed 2 months ago

spatten commented 2 months ago

Overview

Delivers ANE-2002

When you run fossa analyze --json, we want to also include the full project ID in the output. the project ID is typically just the existing project field with custom+ prepended to it:

fossa analyze --json
{
  "branch": null,
  "id": "custom+24987/ane-1993-missing-preview$2024-08-29T21:53:33Z",
  "project": "24987/ane-1993-missing-preview",
  "projectId": "custom+24987/ane-1993-missing-preview",
  "revision": "2024-08-29T21:53:33Z",
  "url": "https://app.fossa.com/projects/custom%2b24987%2fane-1993-missing-preview/refs/branch/master/2024-08-29T21:53:33Z"
}

Acceptance criteria

When you run fossa analyze --json we include the full projectId in the output

Testing plan

Run fossa analyze --json on a project and take a look at the output

Risks

This is low risk

References

Checklist