Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Haley committed Jun 23, 2022
1 parent dd76d40 commit 860a33a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,15 @@ jobs:
vmImage: ubuntu-latest
steps:
- powershell: |
# Gin up imitation v1 yarn.lock files to aid Component Governance Detection analysis. The method:
# Find v3 yarn-berry.lock files. From each, generate a yarn.lock file, deleting all occurrences of 'npm:'.
# This allows CG to work with yarn v3.
$find = 'npm:';
$replace = '';
Get-ChildItem -Recurse -Path '**\yarn-berry.lock' | % {
Get-ChildItem -Recurse -Path '**/yarn-berry.lock' | % {
$source = $_.FullName;
$dest = $_.DirectoryName + "\yarn.lock"
$dest = $_.DirectoryName + "/yarn.lock"
Write-Host $source;
Write-Host $dest;
Copy-Item -Path $source -Destination $dest -Force
Expand All @@ -87,13 +90,6 @@ jobs:
displayName: Generate "yarn.lock" files for CG Detection
continueOnError: true
- powershell: |
cd ..
ls -R
displayName: Dir workspace
continueOnError: true
condition: succeededOrFailed()
- task: ComponentGovernanceComponentDetection@0
displayName: Component Detection
inputs:
Expand Down

0 comments on commit 860a33a

Please sign in to comment.