Skip to content

Add CSAF importer and unit tests #1315#2393

Open
anishedu2234-coder wants to merge 1 commit into
aboutcode-org:mainfrom
anishedu2234-coder:my-first-issue
Open

Add CSAF importer and unit tests #1315#2393
anishedu2234-coder wants to merge 1 commit into
aboutcode-org:mainfrom
anishedu2234-coder:my-first-issue

Conversation

@anishedu2234-coder

Copy link
Copy Markdown

Description

This PR implements the CSAF (Common Security Advisory Framework) Importer to fetch and parse security advisories from CISA's CSAF feed, addressing issue #1315.

Changes Made

  • Added CSAFImporter in vulnerabilities/importers/csaf.py to:
    • Fetch CSAF advisory JSON files from the official CISA CSAF ROLIE feed.
    • Parse advisory metadata, external references, and associated CVEs into AdvisoryData objects.
  • Exposed CSAFImporter in vulnerabilities/importers/__init__.py.
  • Added unit tests in vulnerabilities/tests/test_csaf.py covering feed fetching and data parsing.

How Has This Been Tested?

  • Ran unit tests locally with pytest vulnerabilities/tests/test_csaf.py (all tests passed cleanly).

Related Issue

Closes #1315

Signed-off-by: ANISH RAJAK <anishedu2234@gmail.com>
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.

Add data in CSAF format from https://github.com/cisagov/CSAF

1 participant