Skip to content

Commit

Permalink
Limit ManifestGeneratorTask to internal pipelines (#30326)
Browse files Browse the repository at this point in the history
* only generate sbom on internal builds
  • Loading branch information
scbedd authored Aug 5, 2022
1 parent 4f3839c commit b9b4927
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,17 @@ jobs:
ArtifactPath: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'packages'

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Upload Package SBOM'
condition: succeededOrFailed()
inputs:
BuildDropPath: $(Build.ArtifactStagingDirectory)
- ${{if eq(variables['System.TeamProject'], 'internal') }}:
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Upload Package SBOM'
condition: succeededOrFailed()
inputs:
BuildDropPath: $(Build.ArtifactStagingDirectory)

- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Build.ArtifactStagingDirectory)/_manifest'
ArtifactName: 'manifest'
- template: /eng/common/pipelines/templates/steps/publish-artifact.yml
parameters:
ArtifactPath: '$(Build.ArtifactStagingDirectory)/_manifest'
ArtifactName: 'manifest'

- template: /eng/common/pipelines/templates/steps/detect-api-changes.yml
parameters:
Expand Down

0 comments on commit b9b4927

Please sign in to comment.