Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/build-and-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ run-name: Demo workflow signing with SignPath
on:
push:
pull_request:
#schedule:
# - cron: '30 3 * * *' # every day at 3:30am UTC
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab

jobs:
Expand Down Expand Up @@ -47,7 +45,8 @@ jobs:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '${{ vars.SIGNPATH_ORGANIZATION_ID }}'
project-slug: 'Demo_Application'
signing-policy-slug: '${{ env.SIGNPATH_SIGNING_POLICY_SLUG }}'
# maliciously try to get a release signature from a feature branch
signing-policy-slug: 'release-signing'
github-artifact-id: "${{steps.upload-unsigned-artifact.outputs.artifact-id}}"
wait-for-completion: true
output-artifact-directory: 'demo-application-signed'
Expand Down
4 changes: 2 additions & 2 deletions sbom/Create-SBOM.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dotnet tool install cyclonedx --tool-path $tempPath

# 2.b create nuget bom
$cyclonDxToolPath = Join-Path $tempPath "dotnet-CycloneDX.exe"
& "${cyclonDxToolPath}" --output "${tempPath}" -f "nuget.bom.xml" --exclude-dev src\DemoExample.csproj
& "${cyclonDxToolPath}" --output "${tempPath}" --filename "nuget.bom.xml" --exclude-dev src\DemoExample.csproj

# 3 Create NPM SBOM
$packageJsonPath = Join-Path $PSScriptRoot ".." "src" "package.json"
Expand Down Expand Up @@ -52,4 +52,4 @@ if (-Not (Test-Path $cycloneDxCliToolPath)) {
# 4.b merge both SBOMs into a final one
$nugetBomPath = Join-Path $tempPath "nuget.bom.xml"
$finalBomPath = Join-Path $PSScriptRoot ".." "_BuildResult-unsigned" "bom.xml"
& "${cycloneDxCliToolPath}" merge --input-files "${npmBomPath}" "${nugetBomPath}" --output-format "xml" --output-file "${finalBomPath}" --group "com.SignPath.demos" --name "SignPath Demo Application" --version "1.0.0"
& "${cycloneDxCliToolPath}" merge --input-files "${npmBomPath}" "${nugetBomPath}" --output-format "xml" --output-file "${finalBomPath}" --group "com.SignPath.demos" --name "SignPath Demo Application" --version "1.0.0"
Loading