Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically update OSV from CVE Services #29

Merged
merged 3 commits into from
Jun 14, 2024
Merged

Conversation

sethmlarson
Copy link
Member

I got tired of updating OSV manually after CVEs are published or updated, so this will now automatically generate pull requests for OSV updates.

  • Added a new GitHub Action
  • Changed the import script to use CVE Services instead of the CVE GitHub dump due to latency, CVE services are updated in realtime so we can run this script manually after publishing advisories.

The question I had is how we want to handle our CVE services "bot" account, since it's read-only we wouldn't need an admin account. Wasn't sure if there was an email address we use for cases like this already (see [email protected])

Would also require creating a GitHub Action secret for the CVE API token. I ran the script locally and saw some expected changes to existing OSV records.

@sethmlarson sethmlarson requested a review from ewdurbin June 14, 2024 16:25
@ewdurbin
Copy link
Member

The question I had is how we want to handle our CVE services "bot" account, since it's read-only we wouldn't need an admin account. Wasn't sure if there was an email address we use for cases like this already (see [email protected])

ideally we would integrate as a GitHub App, but that is a couple more hoops to jump through for a single use case.

@sethmlarson
Copy link
Member Author

ideally we would integrate as a GitHub App, but that is a couple more hoops to jump through for a single use case.

Ah! The sentence on the CVE Services bot account was unclear. This would be an account on CVE Services, not on GitHub.

@sethmlarson
Copy link
Member Author

@ewdurbin Alright, I've updated to the new bot account that I've created along with adding a repository secret for CVE_API_TOKEN.

tools/requirements.txt Outdated Show resolved Hide resolved
.github/workflows/sync.yml Outdated Show resolved Hide resolved
@sethmlarson sethmlarson merged commit 99d895e into main Jun 14, 2024
1 check passed
@sethmlarson sethmlarson deleted the update-osv-from-cve branch June 14, 2024 19:13
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.

2 participants