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

Add scripts and workflow for publishing to CVE Services #122

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

maltejur
Copy link
Member

@maltejur maltejur commented Jul 5, 2023

This pull request adds a new script publish_cve_advisories, which uses the cvelib wrapper around the new CVE Service API to automatically publish and update the CVE advisories in this repository. This script can be operated in two different ways.

  • Locally: Install the script with pip install ., export the required secrets as environment variables and then run the script with publish_cve_advisories. This way you can interactively go through the publishing process. The advisories for the last two releases were already published this way.
  • Through CI on every push: This is currently still disabled so we can test the script manually for the next few releases, but in the future, the plan is to run the script through GitHub Workflows on every push, automatically mirroring the content of this repository to CVE Services.

If you still have any questions, concerns or feedback, let me know.

@tomrittervg
Copy link
Collaborator

We have a private repo where we stage advisories. It is a straight copy of this repo - can we add some logic to the Github Action to check the repo name, and only do something if it is this named repo?

@maltejur
Copy link
Member Author

maltejur commented Jul 12, 2023

Yes, I am already doing that here. The false && in front of that same line will also disable the workflow entirely until we want it enabled on every push.

@maltejur maltejur merged commit b6057f4 into mozilla:master Sep 11, 2023
2 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.

2 participants