Skip to content

feat: create allowlist of accepted ecosystems per datasource#5332

Merged
michaelkedar merged 4 commits into
google:masterfrom
michaelkedar:🛡️🏜️🏞️
May 15, 2026

Hidden character warning

The head ref may contain hidden characters: "\ud83d\udee1\ufe0f\ud83c\udfdc\ufe0f\ud83c\udfde\ufe0f"
Merged

feat: create allowlist of accepted ecosystems per datasource#5332
michaelkedar merged 4 commits into
google:masterfrom
michaelkedar:🛡️🏜️🏞️

Conversation

@michaelkedar
Copy link
Copy Markdown
Member

#5285
(merge after #5330)
Adding a new accepted_ecosystems list to SourceRepository to prevent data sources from publishing vulnerabilities to OSV.dev that are outside of their scopes.
Did my best to go through and add all the ecosystems to the source yaml files - I don't think I've missed any.

@michaelkedar michaelkedar requested review from a team and tobyhawker May 11, 2026 06:04
Comment thread source.yaml
type: 2
rest_api_url: 'https://cna.erlef.org/osv/all.json'
db_prefix: ['EEF-']
accepted_ecosystems: ['Hex']
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need a note that they also do Git or are we happy to exclude that?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Git is kinda separate from ecosystems, and this filter doesn't really deal with it anyway.
I think ignore_git is probably meant to capture this (but why is it missing from eef?)

extension='.json',
key_path='vulnerability',
ignore_git=False,
accepted_ecosystems=['Go', 'PyPI'],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this Go and PyPi?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to pick two random ecosystems to make sure the repeated field gets parsed properly

@michaelkedar michaelkedar requested a review from another-rex May 14, 2026 04:31
another-rex
another-rex previously approved these changes May 14, 2026
@michaelkedar michaelkedar merged commit 8ad1f71 into google:master May 15, 2026
21 checks passed
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.

3 participants