From 31e3c46641511bc05e346889ab83820da5440519 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Mon, 27 Jun 2022 11:25:25 -0500 Subject: [PATCH] Make sure we run CG component detection on main (#19060) * Make sure we run CG component detection on main I believe that there is a hidden "default branch" setting in Azure DevOps, and ours is set to "master". CG only attempts to automatically inject to builds off the default branch... and because we're a GitHub repo running builds in AzDO we _can't change what the default branch is_. Oops. Copied from microsoft/terminal#e0bd76b30 * spellbot got mad at me --- .github/actions/spell-check/expect.txt | 1 + .pipelines/ci/templates/build-powertoys-ci.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt index 73438db10f..cb2563c8a8 100644 --- a/.github/actions/spell-check/expect.txt +++ b/.github/actions/spell-check/expect.txt @@ -192,6 +192,7 @@ buf BUFSIZE bugreport BUILDARCH +buildtask buildtransitive Burkina Buryatia diff --git a/.pipelines/ci/templates/build-powertoys-ci.yml b/.pipelines/ci/templates/build-powertoys-ci.yml index 33fdca3cc7..b403ecdb30 100644 --- a/.pipelines/ci/templates/build-powertoys-ci.yml +++ b/.pipelines/ci/templates/build-powertoys-ci.yml @@ -22,3 +22,9 @@ jobs: - template: build-powertoys-steps.yml parameters: additionalBuildArguments: ${{ parameters.additionalBuildArguments }} + + # It appears that the Component Governance build task that gets automatically injected stopped working + # when we renamed our main branch. + - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 + displayName: 'Component Detection' + condition: and(succeededOrFailed(), not(eq(variables['Build.Reason'], 'PullRequest')))