diff options
author | Dan Fandrich <danf@mageia.org> | 2024-03-14 15:18:20 -0700 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2024-03-14 15:21:41 -0700 |
commit | c9c5444f4f27f0a7375088a1cc0b4594742d8fe8 (patch) | |
tree | f10eeb9ec9a1c5403a886e4089bdf7c0a0246a88 /tmpl/vulns.json | |
parent | dcfd914210f70323bdb8c8820cc2eed8f83f4f1f (diff) | |
download | mgaadvisories-c9c5444f4f27f0a7375088a1cc0b4594742d8fe8.tar mgaadvisories-c9c5444f4f27f0a7375088a1cc0b4594742d8fe8.tar.gz mgaadvisories-c9c5444f4f27f0a7375088a1cc0b4594742d8fe8.tar.bz2 mgaadvisories-c9c5444f4f27f0a7375088a1cc0b4594742d8fe8.tar.xz mgaadvisories-c9c5444f4f27f0a7375088a1cc0b4594742d8fe8.zip |
Write JSON index files for advisories
The JSON schema is simple and compatible with the one published in the
Go Vulnerability Database. Security advisories and bugfix advisories
each have their own index.
Diffstat (limited to 'tmpl/vulns.json')
-rw-r--r-- | tmpl/vulns.json | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tmpl/vulns.json b/tmpl/vulns.json new file mode 100644 index 0000000..aadcd05 --- /dev/null +++ b/tmpl/vulns.json @@ -0,0 +1,10 @@ +[ +[%- FOR adv IN advdb.sorted -%] +[% USE advid = String(basename.ID(adv)) -%] +[% IF advid.search('^MGASA-') -%] +[%- "," IF gotone %] +{"id": "[% basename.ID(adv) %]"} +[%- SET gotone = 1 %] +[%- END %] +[%- END %] +] |