* try adding sbom generation

* Fix SBOM Generation

* Fix comment for old pipeline name

* improve whitespace
This commit is contained in:
Noah Gilson 2024-06-04 16:56:01 -07:00 ΠΊΠΎΠΌΠΌΠΈΡ‚ ΠΏΡ€ΠΎΠΈΠ·Π²Ρ‘Π» GitHub
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ 5d3ab464f5
ΠšΠΎΠΌΠΌΠΈΡ‚ 22b76ecfe3
НС Π½Π°ΠΉΠ΄Π΅Π½ ΠΊΠ»ΡŽΡ‡, ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠΉ Π΄Π°Π½Π½ΠΎΠΉ подписи
Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ ΠΊΠ»ΡŽΡ‡Π° GPG: B5690EEEBB952194
3 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 35 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 1 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -54,6 +54,8 @@ extends:
name: NetCore1ESPool-Internal
image: 1es-windows-2022
os: windows
sbom:
enabled: false # SBOM requires a special setup for node.js projects to ensure all dependencies are included.
policheck:
enabled: true
exclusionsFile: $(System.DefaultWorkingDirectory)\PoliCheckExclusions.xml
@ -89,3 +91,10 @@ extends:
image: 1es-windows-2022
os: windows
useOneEngineeringPool: true
- template: pipeline-templates/sbom.yaml@self
parameters:
pool:
name: NetCore1ESPool-Internal
image: 1es-windows-2022
os: windows
useOneEngineeringPool: true

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -0,0 +1,25 @@
parameters:
pool: ''
jobs:
- job: SBOM
pool:
${{ if eq(parameters.useOneEngineeringPool, 'true') }}:
${{ parameters.pool }}
${{ else }}:
vmImage: ${{ parameters.pool.vmImage }}
displayName: πŸ“ SBOM Generation
dependsOn:
- ${{ parameters.pool.os }}_Build
- ${{ parameters.pool.os }}_Package
steps:
- task: ManifestGeneratorTask@0
displayName: πŸ“ƒ SBOM generation
inputs:
BuildDropPath: $(System.DefaultWorkingDirectory)
templateContext:
outputs:
- output: pipelineArtifact
displayName: πŸ“’ Publishing SBOM
artifact: SBOM
targetPath: $(System.DefaultWorkingDirectory)/_manifest

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -33,5 +33,5 @@ suite('LoggingObserver Unit Tests', () => {
assert.include(logContent, fakeEvent.eventName, 'The log file does not contain the expected content that should be written to it');
});
}).timeout(4000);
}).timeout(10000);
});