Skip to content

Commit

Permalink
Add AgentES Task to compliance.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthysell committed Sep 15, 2022
1 parent 49cf9d8 commit 1ea5f80
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .ado/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@ jobs:
- template: templates/run-compliance-prebuild.yml
parameters:
complianceWarnOnly: ${{ parameters.complianceWarnOnly }}

- task: NuGetToolInstaller@1
inputs:
versionSpec: ">=5.8.0"

- task: NuGetAuthenticate@1

# AgentES Task (https://aka.ms/UES)
# Installs and runs the "Agent ES" tool, which scans the source code for banned file types.
- powershell: |
& nuget.exe install AgentES -FallbackSource https://microsoft.pkgs.visualstudio.com/_packaging/Undocked.Shell.Services/nuget/v3/index.json
$AgentESPath = (Get-ChildItem -Path AgentES* -Filter AgentES.exe -Recurse | %{$_.FullName})
& "$(AgentESPath)" $env:BUILD_SOURCESDIRECTORY -e:$env:BUILD_SOURCESDIRECTORY\.ado\config\AgentES.Exemptions.json -b
displayName: "⚖️ AgentES - Scan of Repository for UES Policy Violations"
workingDirectory: $(Agent.BuildDirectory)
continueOnError: ${{ parameters.complianceWarnOnly }}
# Initialize CodeQL 3000 Task (https://aka.ms/codeql3000)
# Performs static code analysis.
Expand Down

0 comments on commit 1ea5f80

Please sign in to comment.