PengZheng commented on code in PR #845:
URL: https://github.com/apache/celix/pull/845#discussion_r3891087598


##########
.github/workflows/conan_create.yml:
##########
@@ -67,6 +67,17 @@ jobs:
           CXX: ${{ matrix.compiler[1] }}
         run: |
           conan create . -c tools.cmake.cmaketoolchain:generator=Ninja -b 
missing -o celix/*:build_all=True  -o celix/*:enable_ccache=True -pr:b default 
-pr:h default -s:h build_type=${{ matrix.type }} -o celix/*:celix_cxx17=True -o 
celix/*:celix_install_deprecated_api=True -o mosquitto/*:broker=True -o 
*:shared=True
+      - name: Generate CycloneDX SBOM
+        if: matrix.compiler[0] == 'gcc'
+        run: |
+          conan install . -o celix/*:build_all=True --deployer=cyclone_1.6 
--deployer-folder=sbom -b missing -o *:shared=True
+      - name: Upload CycloneDX SBOM
+        if: matrix.compiler[0] == 'gcc'
+        uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 
# v4.6.2

Review Comment:
   > We can use the SBOM to scan the resolved dependencies for vulnerabilities, 
as described in a separate follow-up ticket: 
[[#825](https://github.com/apache/celix/issues/825)](#825).
   
   This can be done with [Conan 
Audit](https://docs.conan.io/2/devops/audit.html). We can use it to generate 
vulnerabilities reports so that we can update Celix dependencies promptly to 
provide our users with safe defaults.
   
   >  maybe we should introduce such a lockfile. WDYT?
   
   Both SBOM and lockfile are associated with a specific set of 
dependencies/options, and our users have freedom to change them at their will. 
IMHO, providing them a safe defaults should be enough for now.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to