EGI SVG Advisories

Publishing an advisory

Advisories are to be published by pushing a new file to https://github.com/EGI-Federation/SVG-advisories.

https://advisories.egi.eu is built using GitHub pages.

Source files are in Markdown format, and Jekyll will be used to generate the static site.

New site builds are triggered automatically whenever the repository is updated.

It can take up to a few minutes to see the changes being published.

Overall procedure

Only selected people having write access to this repository can publish advisories.

Advisories are stored in subdirectories named as the current year.

Adding aliases to an advisory

In case an advisory should be reachable by multiple URLs, like for an advisory covering multiple CVEs, it’s possible to specify some URL paths that will be redirected automatically to the primary URL of the advisory.

This can be achieved by using the redirect_from attribute:

---
title: Advisory-SVG-CVE-XXXX-XXXX
permalink: /Advisory-SVG-CVE-XXXX-XXXX
redirect_from:
  - /Advisory-SVG-CVE-XXXX-YYYY
  - /Advisory-SVG-XXXXXZZZZ
---

This will lead to having the advisory reachable by the following URLs:

Adding content to the repository

An advisory template is available, see Advisory-SVG-YYYY-XX-Template.md.

It’s possible to add files using different ways, by using the GitHub web interface, using a cloned repository or using an online IDE.

The standard GitHub web interface is the most simple, but the editor is very basic.

The GitHub.dev web IDE provides a more advanced editor, and its usage is similar to what you would do using a local IDE. It’s slightly more complex but more powerful.

While the next sections documents pushing files directly to the main branch, it is also possible to make use of Pull Requests so that changes can be reviewed and approved before being pushed to production.

Using the GitHub.com web interface to upload a file created locally

It’s possible to prepare the file locally and then upload it to GitHub once it is ready. Once you have prepared the local file (see the advisory template) that should be named Advisory-SVG-YYYY-XX.md, you can upload it by:

Using the GitHub.com web interface to create a file online

Another solution is to edit it online. It can be done in the following way:

If needed edit the relevant index file to reference the new advisory.

Editing the index file can be done in a similar way, by:

Using the GitHub.dev web IDE to create a file online

Another solution is to edit it online using the GitHub.dev web IDE. It’s an IDE based on Microsoft Visual Code.

It can be done in the following way: