From 9cbe2e3387395c674f366079d9e19c04013ce565 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Wed, 1 Feb 2023 17:23:42 -0800 Subject: [PATCH 1/2] Update apiscan task template to install .NET 6 sdk --- template-compliance/apiscan.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/template-compliance/apiscan.yml b/template-compliance/apiscan.yml index 5e5c5d2..0ef8afb 100644 --- a/template-compliance/apiscan.yml +++ b/template-compliance/apiscan.yml @@ -7,6 +7,13 @@ parameters: steps: - ${{ if eq(parameters.APIScanEnable, 'true') }}: + - task: UseDotNet@2 + displayName: 'Use .NET runtime' + inputs: + packageType: sdk + version: 6.x + installationPath: $(Agent.ToolsDirectory)/dotnet + - task: securedevelopmentteam.vss-secure-development-tools.build-task-apiscan.APIScan@2 displayName: 'Run APIScan' inputs: From c2178d0aa19939039ce2b807354d2b869006223a Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Wed, 1 Feb 2023 17:32:52 -0800 Subject: [PATCH 2/2] Fix indent --- template-compliance/apiscan.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/template-compliance/apiscan.yml b/template-compliance/apiscan.yml index 0ef8afb..cc395c1 100644 --- a/template-compliance/apiscan.yml +++ b/template-compliance/apiscan.yml @@ -8,11 +8,11 @@ parameters: steps: - ${{ if eq(parameters.APIScanEnable, 'true') }}: - task: UseDotNet@2 - displayName: 'Use .NET runtime' - inputs: - packageType: sdk - version: 6.x - installationPath: $(Agent.ToolsDirectory)/dotnet + displayName: 'Use .NET runtime' + inputs: + packageType: sdk + version: 6.x + installationPath: $(Agent.ToolsDirectory)/dotnet - task: securedevelopmentteam.vss-secure-development-tools.build-task-apiscan.APIScan@2 displayName: 'Run APIScan'