Skip to content

SARIF output for secfoo findings export #46

Closed

Description

@vsn411

Problem: secfoo findings export only writes JSON Lines. SARIF 2.1.0 is the format GitHub code scanning, GitLab and most IDEs import, so supporting it would show secfoo findings in the Security tab.

Proposal: add --format jsonl|sarif (default jsonl, so existing behavior doesn't change). Map severity to SARIF level/security-severity, the CWE to rules[].properties.tags, and the file/line to locations.

Where to look: findings export in src/secfoo/cli.py, src/secfoo/report/.

Done when: the output validates against the SARIF 2.1.0 schema in a test, and there's a short example in docs/REFERENCE.md of uploading it with github/codeql-action/upload-sarif.

Activity

  1. added
    enhancementNew feature or request
    help wantedExtra attention is needed
    hackathonOpen for the Secfoo hackathon
    on Nov 8, 2026
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

    difficulty: mediumLeaderboard: 6 points when the PR closing this is mergedenhancementNew feature or requesthackathonOpen for the Secfoo hackathonhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions