Skip to content

Add legal artifact presets, FOSSA-compatible outputs#199

Open
lelia wants to merge 12 commits into
mainfrom
lelia/add-legal-checks
Open

Add legal artifact presets, FOSSA-compatible outputs#199
lelia wants to merge 12 commits into
mainfrom
lelia/add-legal-checks

Conversation

@lelia
Copy link
Copy Markdown
Contributor

@lelia lelia commented May 11, 2026

Summary

Introduces a compliance-oriented --legal workflow to socketcli and an opt-in --legal-format fossa mode for producing FOSSA-compatible artifact shapes.

Changes

The --legal workflow enables license generation and default artifact output for:

  • socket-report.json
  • socket-summary.txt
  • socket-report-link.txt
  • socket-sbom.json
  • socket-license.json

The new --legal-format fossa mode adapts those outputs toward the FOSSA pipeline by:

  • emitting a FOSSA-shaped analyze report:
    • project
    • vulnerability
    • licensing
    • quality
  • emitting a FOSSA-style attribution artifact:
    • project
    • dependencies
  • using FOSSA-like default filenames:
    • fossa-analyze.json
    • fossa-test.txt
    • fossa-link.txt
    • fossa-sbom.json

Adds

  • Explicit file output support for JSON reports, summary text, and report links
  • Hardened legal artifact generation for sparse scan paths so artifact creation completes safely even when SBOM/package data is incomplete

Testing

  • Used PR previews to generate real legal artifacts, validate outputs, and fix/retest bugs
  • Added unit test coverage for:
    • --legal and --legal-format defaults
    • FOSSA-compatible reports, attribution output
    • various missing SBOM/package data scenarios
  • Added fixture-based checks against real shared fossa-analyze-*.json samples

lelia added 3 commits May 11, 2026 12:04
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
@lelia lelia requested a review from Douglas (dacoburn) May 11, 2026 16:13
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 11, 2026

🚀 Preview package published!

Install with:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketsecurity==2.2.87.dev3

Docker image: socketdev/cli:pr-199

lelia added 8 commits May 11, 2026 12:15
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
@lelia lelia changed the title [DRAFT] Simplify compliance workflow with legal preset and artifacts Add legal artifact presets, FOSSA-compatible outputs May 18, 2026
@lelia lelia marked this pull request as ready for review May 18, 2026 18:55
@lelia lelia requested a review from a team as a code owner May 18, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant