Skip to content

Commit 6350c76

Browse files
authored
Merge pull request #9035 from MiYanni/securitytools-changes
Add SecurityTools (CredScan, BinSkim, PoliCheck) to PR builds in ADO
2 parents c9222ea + b2bf167 commit 6350c76

File tree

10 files changed

+1071
-1337
lines changed

10 files changed

+1071
-1337
lines changed

.azure-pipelines/windows-powershell.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,36 @@ jobs:
1919
testFramework: ${{ variables.TestFramework }}
2020
configuration: ${{ variables.Configuration }}
2121

22+
- job: Analyze
23+
displayName: Analyze
24+
dependsOn: Build
25+
condition: succeeded()
26+
pool:
27+
vmImage: ${{ variables.WindowsImage }}
28+
29+
steps:
30+
- template: util/analyze-steps.yml
31+
parameters:
32+
osName: ${{ variables.WindowsName }}
33+
configuration: ${{ variables.Configuration }}
34+
- task: PowerShell@2
35+
displayName: 'Cleanup Build'
36+
inputs:
37+
targetType: filePath
38+
filePath: tools/CleanupBuild.ps1
39+
pwsh: true
40+
- task: NuGetCommand@2
41+
displayName: 'Download BinSkim'
42+
inputs:
43+
command: custom
44+
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools'
45+
- task: PowerShell@2
46+
displayName: 'Run BinSkim'
47+
inputs:
48+
targetType: filePath
49+
filePath: tools/SecurityTools/RunBinSkim.ps1
50+
pwsh: true
51+
2252
- job: Test
2353
displayName: Test
2454
dependsOn: Build

src/HDInsight/HDInsight.Test/UnitTests/DataLakeStoreTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ namespace Commands.HDInsight.Test.UnitTests
2929
public class DataLakeStoreTests : HDInsightTestBase
3030
{
3131
private NewAzureHDInsightClusterCommand cmdlet;
32-
private const string StorageName = "dummystorage.blob.core.windows.net";
33-
private const string StorageKey = "O9EQvp3A3AjXq/W27rst1GQfLllhp01qlJMJfSU1hVW2K42gUeiUUn2D8zX2lU3taiXSSfqkZlcPv+nQcYYwUx==";
34-
private const int ClusterSize = 4;
3532
private Guid ObjectId = new Guid("11111111-1111-1111-1111-111111111111");
3633
private Guid AadTenantId = new Guid("11111111-1111-1111-1111-111111111111");
3734
private string Certificate = "";

tools/CheckBinScope.ps1

Lines changed: 0 additions & 39 deletions
This file was deleted.

tools/CheckCredScan.ps1

Lines changed: 0 additions & 55 deletions
This file was deleted.

tools/CheckPoliCheck.ps1

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)