Wiki source code of Import an Advisory from GitHub

Last modified by Simon Urli on 2026/11/13 10:24

Show last authors
1 Import a security advisory drafted on GitHub into the [[Security Advisory Application>>doc:documentation.extensions.user.security-advisory.WebHome]] instead of [[creating it in the wiki>>doc:documentation.extensions.user.security-advisory.create-advisory.WebHome]]. The application imports the GitHub advisories of the repositories an administrator [[listed for import>>doc:documentation.extensions.admin.security-advisory.set-up-application.WebHome]], once a day.
2
3 1. Create the security advisory on GitHub, from the "Security" tab of a repository listed for import, and keep it as a draft.
4 1. Wait for the [[daily import>>doc:documentation.extensions.admin.security-advisory.configuration.WebHome||anchor="HSchedulerJobs"]], or ask an administrator to import it right away: on the "Single Advisory Import Tool" page, linked as "this tool" on the application home page, they enter the "Advisory URL" and click "Import advisory".(((
5 {{image reference="single-advisory-import.png" size="extra" alt="The Single Advisory Import Tool page, with the Advisory URL field filled with a GitHub advisory URL and the Import advisory button"/}}
6 )))
7 1. The advisory appears in the list of the application home page as a draft, with its title, description, product, CVSS vector, CVE identifier and impacted packages taken from GitHub, a link to the GitHub advisory, and [[assigned>>doc:documentation.extensions.user.security-advisory.advisory-fields.WebHome||anchor="HAssignee"]] to the XWiki user mapped to one of its GitHub users. An advisory already published on GitHub is imported as disclosed instead.(((
8 {{image reference="imported-advisory.png" size="extra" alt="An imported advisory in the Draft status, assigned to the XWiki user mapped to its GitHub user, with its Advisory Link pointing to the GitHub advisory"/}}
9 )))

Get Connected