<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16306</bug_id>
          
          <creation_ts>2026-06-05 08:02:08 +0000</creation_ts>
          <short_desc>AB-INT: metrics: sbom-cve-check: unable to access &apos;https://github.com/CVEProject/cvelistV5.git/&apos;</short_desc>
          <delta_ts>2026-10-19 18:56:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>Infrastructure General</product>
          <component>infrastructure-general</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Paul Barker">paul</assigned_to>
          <cc>paul</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105740</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-06-05 08:02:08 +0000</bug_when>
    <thetext>Does the &quot;error setting certificate file&quot; mean something went wrong locally?

ERROR: meta-world-recipe-sbom-1.0-r0 do_sbom_cve_check_recipe: sbom-cve-check failed: Execution of &apos;/srv/pokybuild/yocto-worker/metrics/build/build/tmp/work/qemux86_64-poky-linux/meta-world-recipe-sbom/1.0/recipe-sysroot-native/usr/bin/sbom-cve-check --sbom-path /srv/pokybuild/yocto-worker/metrics/build/build/tmp/deploy/images/qemux86-64/world-recipe-sbom.spdx.json --disable-auto-updates --export-process-native both --export-type spdx3 --export-path /srv/pokybuild/yocto-worker/metrics/build/build/tmp/work/qemux86_64-poky-linux/meta-world-recipe-sbom/1.0/sbom-cve-check/image-deploy/world-recipe-sbom.sbom-cve-check.spdx.json --export-type yocto-cve-check-manifest --export-path /srv/pokybuild/yocto-worker/metrics/build/build/tmp/work/qemux86_64-poky-linux/meta-world-recipe-sbom/1.0/sbom-cve-check/image-deploy/world-recipe-sbom.sbom-cve-check.yocto.json&apos; failed with exit code 1:
ERROR:sbom_cve_check.cli:cvelist database init failed. `[&apos;git&apos;, &apos;fetch&apos;, &apos;-f&apos;, &apos;origin&apos;, &apos;refs/heads/main:refs/remotes/origin/main&apos;]` failed:
---
fatal: unable to access &apos;https://github.com/CVEProject/cvelistV5.git/&apos;: error setting certificate file: /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105751</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-06-05 08:15:33 +0000</bug_when>
    <thetext>metrics alma8-vk-1 2.18&amp;wrynose completed at 2026-06-04 07:12:22+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/103/builds/3440/steps/17/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105822</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-06-11 14:36:38 +0000</bug_when>
    <thetext>Note how the certificate path is a SDK pre-relocation path and this is on alma8 which uses buildtools, so a SDK.  Something didn&apos;t relocate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105904</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-06-17 09:34:32 +0000</bug_when>
    <thetext>So my working theory is that the problem here is that the autobuilder scripts support buildtools by scanning the environment script for exports and adding them to an environment. However, the SSL certificate setting isn&apos;t done with a simple export but instead with logic.

I think the solution here is to either wrap every call in helper with a potential call to the environment script, or to actually run the environment script once and harvest the environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105906</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-06-17 14:49:39 +0000</bug_when>
    <thetext>Writing down my half-formed ideas before I forget them.

Where the current code tries to parse the buildtools environment script, instead do something like this:

$ . environment-setup-aarch64-pokysdk-linux &amp;&amp; python3 -c &apos;import os,json; print(json.dumps(dict(os.environ)))&apos;
{&quot;SHELL&quot;: &quot;/bin/bash&quot;, &quot;OPENSSL_ENGINES&quot;: &quot;/home/rosbur01/Scratch/buildtools-6.0/sysroots/aarch64-pokysdk-linux/usr/lib/engines-3&quot;, ...

This gives us a JSON string we can then parse (and just dump as an error message if it can&apos;t be parsed) which can then be used to update the environment dictionary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106492</commentid>
    <comment_count>5</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-08-11 14:54:45 +0000</bug_when>
    <thetext>metrics alma8-vk-2 wrynose&amp;2.18 completed at 2026-08-08 07:24:17+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/103/builds/3831/steps/19/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106509</commentid>
    <comment_count>6</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-08-13 06:23:42 +0000</bug_when>
    <thetext>metrics alma9-vk-2 2.18&amp;wrynose completed at 2026-08-12 07:33:20+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/103/builds/3855/steps/19/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106520</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-08-13 14:50:52 +0000</bug_when>
    <thetext>Apparently on on wrynose. 
Is the buildtools tarball missing a bug fix ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106536</commentid>
    <comment_count>8</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-08-14 06:15:22 +0000</bug_when>
    <thetext>metrics alma8-vk-1 wrynose&amp;2.18 completed at 2026-08-13 07:36:01+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/103/builds/3861/steps/19/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106555</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-08-18 21:19:32 +0000</bug_when>
    <thetext>The environment for buildtools tarball isn&apos;t being correctly applied. This is fixed in helper:

https://git.yoctoproject.org/yocto-autobuilder-helper/commit/?id=ff7149fe675bff1f57f4f46c0efc5dd5029ce001

https://git.yoctoproject.org/yocto-autobuilder-helper/commit/?h=wrynose&amp;id=0b2dce87e3324e3ec4db1ff3d8d861a8d7d295cc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106690</commentid>
    <comment_count>10</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-08-31 10:23:57 +0000</bug_when>
    <thetext>Looks like it happened again.
metrics stream9-vk-1 master completed at 2026-08-31 07:58:44+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/103/builds/3970/steps/24/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106705</commentid>
    <comment_count>11</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-09-03 08:06:10 +0000</bug_when>
    <thetext>Reopening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106710</commentid>
    <comment_count>12</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-09-03 08:11:35 +0000</bug_when>
    <thetext>metrics alma9-vk-2 master completed at 2026-09-03 07:50:20+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/103/builds/3988/steps/19/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106720</commentid>
    <comment_count>13</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-09-03 15:52:03 +0000</bug_when>
    <thetext>More logs from the logfile:

DEBUG: Executing python function do_sbom_cve_check_recipe
NOTE: Running: /srv/pokybuild/yocto-worker/metrics/build/build/tmp/work/qemux86_64-poky-linux/meta-world-recipe-sbom/1.0/recipe-sysroot-native/usr/bin/sbom-cve-check --sbom-path /srv/pokybuild/yocto-worker/metrics/build/build/tmp/deploy/images/qemux86-64/world-recipe-sbom.spdx.json --disable-auto-updates --export-process-native both --export-type spdx3 --export-path /srv/pokybuild/yocto-worker/metrics/build/build/tmp/work/qemux86_64-poky-linux/meta-world-recipe-sbom/1.0/sbom-cve-check/image-deploy/world-recipe-sbom.sbom-cve-check.spdx.json --export-type yocto-cve-check-manifest --export-path /srv/pokybuild/yocto-worker/metrics/build/build/tmp/work/qemux86_64-poky-linux/meta-world-recipe-sbom/1.0/sbom-cve-check/image-deploy/world-recipe-sbom.sbom-cve-check.yocto.json
ERROR: sbom-cve-check failed: Execution of &apos;/srv/pokybuild/yocto-worker/metrics/build/build/tmp/work/qemux86_64-poky-linux/meta-world-recipe-sbom/1.0/recipe-sysroot-native/usr/bin/sbom-cve-check --sbom-path /srv/pokybuild/yocto-worker/metrics/build/build/tmp/deploy/images/qemux86-64/world-recipe-sbom.spdx.json --disable-auto-updates --export-process-native both --export-type spdx3 --export-path /srv/pokybuild/yocto-worker/metrics/build/build/tmp/work/qemux86_64-poky-linux/meta-world-recipe-sbom/1.0/sbom-cve-check/image-deploy/world-recipe-sbom.sbom-cve-check.spdx.json --export-type yocto-cve-check-manifest --export-path /srv/pokybuild/yocto-worker/metrics/build/build/tmp/work/qemux86_64-poky-linux/meta-world-recipe-sbom/1.0/sbom-cve-check/image-deploy/world-recipe-sbom.sbom-cve-check.yocto.json&apos; failed with exit code 1:
ERROR:sbom_cve_check.cli:cvelist database init failed. `[&apos;git&apos;, &apos;fetch&apos;, &apos;-f&apos;, &apos;origin&apos;, &apos;refs/heads/main:refs/remotes/origin/main&apos;]` failed:
---
fatal: unable to access &apos;https://github.com/CVEProject/cvelistV5.git/&apos;: error setting certificate file: /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106721</commentid>
    <comment_count>14</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-09-03 15:52:31 +0000</bug_when>
    <thetext>If --disable-auto-updates is set, should it try and init the database?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106735</commentid>
    <comment_count>15</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-09-04 16:47:57 +0000</bug_when>
    <thetext>It is a git fetch, which suggests that it is actually trying to update. As such this is probably a but in sbom-cve-check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106814</commentid>
    <comment_count>16</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-09-11 08:13:10 +0000</bug_when>
    <thetext>On wrynose, we probably just need a backport.
metrics alma8-vk-2 2.18&amp;wrynose completed at 2026-09-11 07:47:15+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/103/builds/4035/steps/24/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106815</commentid>
    <comment_count>17</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-09-11 08:52:34 +0000</bug_when>
    <thetext>I think this particular bug is fixed, on master by:
* python3-sbom-cve-check: update to version 1.3.4
  https://git.openembedded.org/openembedded-core/commit/?id=9fcb4b9b16594710b8be34b228042c426b48ee0e
* sbom-cve-check: enable offline mode
  https://git.openembedded.org/openembedded-core/commit/?id=db2e0fdf82af5b50053840e522bf72550d1cbe66

(In reply to Mathieu Dubois-Briand from comment #16)
&gt; On wrynose, we probably just need a backport.

I need to discuss this: the sbom-cve-check 1.3.4 upgrade is not as clearly stable (wrt our stable policy) as I usually accept:
* sbom-cve-check/CHANGELOG.md at v1.3.4 · bootlin/sbom-cve-check
  https://github.com/bootlin/sbom-cve-check/blob/v1.3.4/CHANGELOG.md#v134
* Comparing v1.3.3...v1.3.4 · bootlin/sbom-cve-check
  https://github.com/bootlin/sbom-cve-check/compare/v1.3.3...v1.3.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107121</commentid>
    <comment_count>18</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-10-19 18:56:52 +0000</bug_when>
    <thetext>sbom-cve-check 1.3.5 is merged to wrynose, so this can be closed.

https://git.openembedded.org/openembedded-core/commit/?h=wrynose&amp;id=c7f050793137ae539efc826e4050a2d0f08c33ac</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>