[PATCH] gitlab-ci: cve_tags: Remove duplicate tags from exported list

Peter Krempa via Devel posted 1 patch 1 week, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/5d826eb2b2d630d09833b658af0d9546b0c25de5.1788428791.git.pkrempa@redhat.com
.gitlab-ci.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] gitlab-ci: cve_tags: Remove duplicate tags from exported list
Posted by Peter Krempa via Devel 1 week, 3 days ago
From: Peter Krempa <pkrempa@redhat.com>

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 <pkrempa@redhat.com>
---
 .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
Re: [PATCH] gitlab-ci: cve_tags: Remove duplicate tags from exported list
Posted by Daniel P. Berrangé via Devel 1 week, 3 days ago
On Thu, Sep 03, 2026 at 11:46:31AM +0200, Peter Krempa via Devel wrote:
> From: Peter Krempa <pkrempa@redhat.com>
> 
> 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 <pkrempa@redhat.com>
> ---
>  .gitlab-ci.yml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|