parameters: disableComponentGovernance: false steps: - ${{ if eq(parameters.disableComponentGovernance, 'true') }}: - script: "echo ##vso[task.setvariable variable=skipComponentGovernanceDetection]true" displayName: Set skipComponentGovernanceDetection variable - ${{ if ne(parameters.disableComponentGovernance, 'true') }}: - task: ComponentGovernanceComponentDetection@0 continueOnError: true