Skip to content

Commit 36856ca

Browse files
authored
Revive support for component governance variable (#23624)
1 parent aedcfbd commit 36856ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.azure/pipelines/jobs/default-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
continueOnError: true
243243
condition: always()
244244

245-
- ${{ if and(startsWith(parameters.jobDisplayName, 'Build:'), ne(parameters.skipComponentGovernanceDetection, 'true'), notin(variables['Build.Reason'], 'PullRequest')) }}:
245+
- ${{ if and(startsWith(parameters.jobDisplayName, 'Build:'), ne(variables['skipComponentGovernanceDetection'], 'true'), ne(parameters.skipComponentGovernanceDetection, 'true'), notin(variables['Build.Reason'], 'PullRequest')) }}:
246246
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
247247
condition: and(succeeded(), ne(variables['CG_RAN'], 'true'))
248248
displayName: 'Component Detection'

0 commit comments

Comments
 (0)