Skip to content

Commit da37809

Browse files
authored
Fix compliance pipeline take two (microsoft#901)
1 parent 3fca2cf commit da37809

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

_build/azure-pipelines.compliance.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -45,33 +45,6 @@ extends:
4545
submodules: false
4646
retryCountOnTaskFailure: 3
4747

48-
- task: NodeTool@0
49-
inputs:
50-
versionSpec: 20.x
51-
displayName: 'Install Node'
52-
53-
- bash: |
54-
npm install -g `node -e 'console.log(JSON.parse(fs.readFileSync("package.json", "utf8")).packageManager)'`
55-
npm --version
56-
displayName: 'Install packageManager from package.json'
57-
58-
# Do --ignore-scripts for now to avoid needing to install/build rust.
59-
- bash: npm ci --ignore-scripts
60-
displayName: 'npm ci'
61-
62-
- bash: |
63-
set -euo pipefail
64-
version=$(grep -oP '^go \K[0-9]+\.[0-9]+' go.mod)
65-
curl -SL -o '$(Agent.BuildDirectory)/golang.tar.gz' https://aka.ms/golang/release/latest/go${version}.linux-amd64.tar.gz
66-
tar -C '$(Agent.BuildDirectory)' -xzf '$(Agent.BuildDirectory)/golang.tar.gz'
67-
rm -f '$(Agent.BuildDirectory)/golang.tar.gz'
68-
echo '##vso[task.prependpath]$(Agent.BuildDirectory)/go/bin'
69-
displayName: 'Install Go'
70-
71-
- bash: |
72-
which go
73-
go version
74-
displayName: 'Check Go version'
75-
76-
- bash: npx hereby build
77-
displayName: 'Build'
48+
- task: ComponentGovernanceComponentDetection@0
49+
condition: succeededOrFailed()
50+
continueOnError: True

0 commit comments

Comments
 (0)