From bbde711e6d8566ee93da393c35bcfb3fdd0c5a2d Mon Sep 17 00:00:00 2001
From: Timothy Stone <gitlab@petmystone.com>
Date: Sat, 13 Jul 2024 21:35:44 -0400
Subject: [PATCH] fix(jib): correct the artifacts paths and reports definition

The files produced by Syft in the script do not match the definition of the files in the artifacts
to upload on the conclusion of the job. Match the file names in the artifacts to the job files
produced, i.e., s/jib-//g

Fixes #62
---
 templates/gitlab-ci-maven-jib.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/gitlab-ci-maven-jib.yml b/templates/gitlab-ci-maven-jib.yml
index 05544cb..589b865 100644
--- a/templates/gitlab-ci-maven-jib.yml
+++ b/templates/gitlab-ci-maven-jib.yml
@@ -143,10 +143,10 @@ mvn-sbom:
     expire_in: 1 week
     when: always
     paths:
-      - "reports/mvn-jib-sbom-*.cyclonedx.json"
+      - "reports/mvn-sbom-*.cyclonedx.json"
     reports:
       cyclonedx: 
-        - "reports/mvn-jib-sbom-*.cyclonedx.json"
+        - "reports/mvn-sbom-*.cyclonedx.json"
 
 mvn-trivy:
   extends: .mvn-base
-- 
GitLab