From: Peter Krempa <[email protected]>

The 'cve-tags' file is exported as an artifact, but contained duplicate
entries. Remove the duplicates. The artifact will be used by the
'libvirt-security-notice' repo to check for missing entries.

Signed-off-by: Peter Krempa <[email protected]>
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7121248f7b..744c6472a3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -193,7 +193,7 @@ cve_tags:
     - when: never
   script:
     # fetch list of git tags and exceptions
-    - git tag | grep -o 'CVE-[0-9]\+-[0-9]\+' > cve-tags
+    - git tag | grep -o 'CVE-[0-9]\+-[0-9]\+' | sort -u > cve-tags
     - grep -o 'CVE-[0-9]\+-[0-9]\+' .cve_exceptions > cve-allowed-exceptions
     - sort -u cve-tags cve-allowed-exceptions > cve-allowed
     # lookup CVE ids in 'git-log'
-- 
2.55.0

Reply via email to