Skip to content

Add SRAC sidecar correlation pipeline - #2279

Open
saksham-rathore wants to merge 1 commit into
aboutcode-org:mainfrom
saksham-rathore:issue-2244-srac
Open

saksham-rathore wants to merge 1 commit into
aboutcode-org:mainfrom
saksham-rathore:issue-2244-srac

Conversation

@saksham-rathore

Copy link
Copy Markdown

Changes

• 1. Add an optional load_srac pipeline that:
- Imports the SBOM using existing load_sbom logic.
- Finds exactly one .srac.json or .srac sidecar.
- Parses and validates its assertions array.
- Verifies the declared digest.
- Correlates assertions using stable identifiers: PURL, package UID, SBOM reference, or SHA-256.

  1. Store a deterministic report in:

    • project.extra_data["srac_correlation"]
    • srac-correlation.json project output
  2. Classify every assertion as:

    • matched
    • unmatched
    • ambiguous
    • invalid
    • stale
  3. Preserve the original assertion and sidecar digest for auditability.

  4. Keep safety decisions untouched. The pipeline only records externally authored SRAC data; it never creates or changes safety
    classifications, impact decisions, or approvals

Checklist

  • I have read the contributing guidelines
  • I have linked an existing issue above
  • I have added unit tests covering the new code
  • I have reviewed and understood every line of this PR

Signed-off-by: sammy <samrathore07062007@gmail.com>

This branch has not been deployed

No deployments
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