-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SBOMs generation for Windows artifacts #99
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,45 @@ | ||||||||||||||||||
jobs: | ||||||||||||||||||
- job: SBOM_Files | ||||||||||||||||||
displayName: Create SBOMs for Python binaries | ||||||||||||||||||
|
||||||||||||||||||
pool: | ||||||||||||||||||
vmImage: windows-2022 | ||||||||||||||||||
|
||||||||||||||||||
workspace: | ||||||||||||||||||
clean: all | ||||||||||||||||||
|
||||||||||||||||||
strategy: | ||||||||||||||||||
matrix: | ||||||||||||||||||
win32: | ||||||||||||||||||
Name: win32 | ||||||||||||||||||
amd64: | ||||||||||||||||||
Name: amd64 | ||||||||||||||||||
arm64: | ||||||||||||||||||
Name: arm64 | ||||||||||||||||||
|
||||||||||||||||||
steps: | ||||||||||||||||||
- task: UsePythonVersion@0 | ||||||||||||||||||
displayName: 'Use Python 3.6 or later' | ||||||||||||||||||
inputs: | ||||||||||||||||||
versionSpec: '>=3.6' | ||||||||||||||||||
|
||||||||||||||||||
- template: ./checkout.yml | ||||||||||||||||||
|
||||||||||||||||||
- task: DownloadPipelineArtifact@1 | ||||||||||||||||||
displayName: 'Download artifact: bin_$(Name)' | ||||||||||||||||||
inputs: | ||||||||||||||||||
artifactName: bin_$(Name) | ||||||||||||||||||
targetPath: $(Build.BinariesDirectory)\bin | ||||||||||||||||||
|
||||||||||||||||||
- powershell: > | ||||||||||||||||||
python | ||||||||||||||||||
"$(Build.SourcesDirectory)\sbom.py" | ||||||||||||||||||
(gci msi\*\python-*.exe | select -First 1) | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason we wouldn't/shouldn't just do all of them? (Omitting the |
||||||||||||||||||
workingDirectory: $(Build.BinariesDirectory) | ||||||||||||||||||
displayName: 'Create SBOMs for binaries' | ||||||||||||||||||
|
||||||||||||||||||
- task: PublishPipelineArtifact@0 | ||||||||||||||||||
displayName: 'Publish artifact: sbom' | ||||||||||||||||||
inputs: | ||||||||||||||||||
targetPath: '$(Build.BinariesDirectory)\sbom' | ||||||||||||||||||
artifactName: sbom | ||||||||||||||||||
Comment on lines
+41
to
+45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This is the preferred format for simple cases now (should auto-update when they need to make changes to the publish task). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we're going to get chances to this template as well to SSH the files up to the server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's the plan, I might do that in a follow-up PR though. Maybe I'll remove this
dependsOn
for now.