Skip to content

Commit cb0c36d

Browse files
inject images to default component detection used by 1ES (#1490)
1 parent ca63840 commit cb0c36d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.pipelines/azure_pipeline_mergedbranches.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,11 @@ extends:
323323
inputs:
324324
BuildDropPath: '$(Build.ArtifactStagingDirectory)/linux'
325325
DockerImagesToScan: '$(GOLANG_BASE_IMAGE),$(CI_BASE_IMAGE),${{ variables.repoImageName }}:$(linuxImagetag)'
326-
- task: ComponentGovernanceComponentDetection@0
327-
condition: eq(variables.IS_PR, true)
328-
inputs:
329-
DockerImagesToScan: '$(GOLANG_BASE_IMAGE),$(CI_BASE_IMAGE)'
330-
- task: ComponentGovernanceComponentDetection@0
331-
condition: eq(variables.IS_PR, false)
332-
inputs:
333-
DockerImagesToScan: '$(GOLANG_BASE_IMAGE),$(CI_BASE_IMAGE),${{ variables.repoImageName }}:$(linuxImagetag)'
326+
- bash: |
327+
dockerImagesToScan='$(GOLANG_BASE_IMAGE),$(CI_BASE_IMAGE),${{ variables.repoImageName }}:$(linuxImagetag)'
328+
echo "Docker images to scan: $dockerImagesToScan"
329+
echo "##vso[task.setvariable variable=dockerImagesToScan]$dockerImagesToScan"
330+
displayName: 'Set Docker images to scan'
334331
- job: build_windows_2019
335332
pool:
336333
name: Azure-Pipelines-CI-Test-EO

0 commit comments

Comments
 (0)