From a7bafabae993c2e403a3fef8b0c961eb22cc7e30 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 1 Jun 2023 13:26:56 -0700 Subject: [PATCH 1/2] Update Sbom.yml to add ability to disable signing --- Sbom.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sbom.yml b/Sbom.yml index 77f8604..8fa1f36 100644 --- a/Sbom.yml +++ b/Sbom.yml @@ -13,6 +13,8 @@ parameters: default: '0.0.0' - name: sourceScanPath default: $(Build.SourcesDirectory) + - name: signSBOM + default: true steps: - task: UseDotNet@2 @@ -52,6 +54,7 @@ steps: BuildComponentPath: ${{ parameters.sourceScanPath }} env: SBOMGenerator_Formats: '${{ parameters.SBOMGenerator_Formats }}' + Packaging.EnableSBOMSigning: '${{ parameters.signSBOM }}' # *** Leaving these as documentation of the rest of the inputs *** # These should be implemented as needed with backwards compatibility for user that didn't supply the parameters # From 34ab820eb582749480f0679109fefc229c01be40 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 1 Jun 2023 14:39:39 -0700 Subject: [PATCH 2/2] Fix environment variable name --- Sbom.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sbom.yml b/Sbom.yml index 8fa1f36..4fc270a 100644 --- a/Sbom.yml +++ b/Sbom.yml @@ -54,7 +54,7 @@ steps: BuildComponentPath: ${{ parameters.sourceScanPath }} env: SBOMGenerator_Formats: '${{ parameters.SBOMGenerator_Formats }}' - Packaging.EnableSBOMSigning: '${{ parameters.signSBOM }}' + PACKAGING_ENABLESBOMSIGNING: '${{ parameters.signSBOM }}' # *** Leaving these as documentation of the rest of the inputs *** # These should be implemented as needed with backwards compatibility for user that didn't supply the parameters #