Skip to content

Commit a3656bc

Browse files
author
Lei jin
committed
Merge branch 'main' into network-release
2 parents 2b77d4c + 4be031b commit a3656bc

File tree

16,487 files changed

+2363873
-627424
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

16,487 files changed

+2363873
-627424
lines changed

.azure-pipelines/daily-build.yml

Lines changed: 60 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pr: none
1414

1515
jobs:
1616
- job: DailyBuild
17-
timeoutInMinutes: 180
17+
timeoutInMinutes: 360
1818
pool: pool-windows-2019
1919
steps:
2020
- task: PowerShell@2
@@ -58,7 +58,7 @@ jobs:
5858
script: |
5959
$command = "`$PSVersionTable `
6060
Get-PSRepository `
61-
./tools/RunVersionController.ps1 -Release 'Daily Build $(today)' `
61+
./tools/RunVersionController.ps1 -Release 'Daily Build $(today)' -ReleaseType $(ReleaseType)`
6262
Exit"
6363
dotnet tool run pwsh -c $command
6464
@@ -76,21 +76,21 @@ jobs:
7676
custom: msbuild
7777
arguments: 'build.proj /t:Build /p:Configuration=Release;TurnOnTestCoverage=true;ModifiedModuleBuild=true'
7878

79-
- task: EsrpCodeSigning@4
79+
- task: EsrpCodeSigning@5
80+
displayName: "Sign Dll [Authenticode + Strong Name]"
8081
inputs:
81-
ConnectedServiceName: '$(signServiceConnection)'
82+
ConnectedServiceName: '$(ESRPServiceConnectionName)'
83+
AppRegistrationClientId: '$(ESRPAppClientId)'
84+
AppRegistrationTenantId: '$(ESRPAppTenantId)'
85+
AuthAKVName: '$(ESRPKVName)'
86+
AuthCertName: '$(ESRPAuthCertName)'
87+
AuthSignCertName: '$(ESRPSignCertName)'
8288
FolderPath: 'artifacts'
8389
Pattern: |
84-
Release/**/Microsoft*Azure*PowerShell*Cmdlets*.dll
85-
Release/**/Microsoft.Azure.PowerShell.*.Sdk.dll
90+
Release/**/Microsoft*Azure*PowerShell*.dll
8691
Release/**/Az.*.private.dll
87-
Release/**/Microsoft.Azure.PowerShell.AssemblyLoading.dll
88-
Release/**/Microsoft.Azure.PowerShell.Authentication.dll
89-
Release/**/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll
90-
Release/**/Microsoft.Azure.PowerShell.Authenticators.dll
91-
Release/**/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll
9292
Release/**/Microsoft.Azure.Commands.*.AlcWrapper.dll
93-
!Release/**/Microsoft*Azure*PowerShell*Cmdlets*.Test.dll
93+
InstallerChecks.dll
9494
UseMinimatch: true
9595
signConfigType: 'inlineSignParams'
9696
inlineOperation: |
@@ -133,11 +133,56 @@ jobs:
133133
SessionTimeout: '60'
134134
MaxConcurrency: '50'
135135
MaxRetryAttempts: '5'
136-
137-
- task: EsrpCodeSigning@4
136+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
137+
displayName: "Sign Scripts [Authenticode]"
138+
inputs:
139+
ConnectedServiceName: '$(ESRPServiceConnectionName)'
140+
AppRegistrationClientId: '$(ESRPAppClientId)'
141+
AppRegistrationTenantId: '$(ESRPAppTenantId)'
142+
AuthAKVName: '$(ESRPKVName)'
143+
AuthCertName: '$(ESRPAuthCertName)'
144+
AuthSignCertName: '$(ESRPSignCertName)'
145+
FolderPath: 'artifacts'
146+
Pattern: |
147+
Release/**/*.ps1
148+
Release/**/*.psm1
149+
Release/**/*.ps1xml
150+
Release/**/*.js
151+
InstallModule.ps1
152+
UseMinimatch: true
153+
signConfigType: inlineSignParams
154+
inlineOperation: |
155+
[
156+
{
157+
"KeyCode": "CP-230012",
158+
"OperationCode": "SigntoolSign",
159+
"Parameters": {
160+
"OpusName": "Microsoft",
161+
"OpusInfo": "http://www.microsoft.com",
162+
"FileDigest": "/fd \"SHA256\"",
163+
"PageHash": "/NPH",
164+
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
165+
},
166+
"ToolName": "sign",
167+
"ToolVersion": "1.0"
168+
},
169+
{
170+
"KeyCode": "CP-230012",
171+
"OperationCode": "SigntoolVerify",
172+
"Parameters": {},
173+
"ToolName": "sign",
174+
"ToolVersion": "1.0"
175+
}
176+
]
177+
- task: EsrpCodeSigning@5
138178
displayName: 'Sign 3rd Party [Strong Name]'
139179
inputs:
140-
ConnectedServiceName: '$(signServiceConnection)'
180+
ConnectedServiceName: '$(ESRPServiceConnectionName)'
181+
AppRegistrationClientId: '$(ESRPAppClientId)'
182+
AppRegistrationTenantId: '$(ESRPAppTenantId)'
183+
AuthAKVName: '$(ESRPKVName)'
184+
AuthCertName: '$(ESRPAuthCertName)'
185+
AuthSignCertName: '$(ESRPSignCertName)'
141186
FolderPath: artifacts
142187
Pattern: 'Release/**/FuzzySharp.dll'
143188
UseMinimatch: true

.azure-pipelines/security-tools.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,28 @@ jobs:
4747
OCTOKITPAT: $(GithubToken)
4848
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
4949
displayName: Run CredScan
50-
condition: in(variables['system.pullRequest.targetBranch'], 'generation', 'main')
5150
inputs:
5251
toolMajorVersion: V2
5352
outputFormat: sarif
5453
scanFolder: SecurityTmp
5554
suppressionsFile: tools/SecurityTools/CredScanSuppressions.json
55+
- task: PowerShell@2
56+
displayName: Run external CredScan
57+
env:
58+
GDN_CREDSCAN_OUTPUTTYPE: sarif
59+
Scan_Folder: SecurityTmp
60+
GDN_CREDSCAN_SUPPRESSIONSPATH: tools/SecurityTools/CredScanSuppressions.json
61+
GDN_CREDSCAN_SUPPRESSASERROR: False
62+
inputs:
63+
targetType: inline
64+
script: |
65+
nuget.exe install Microsoft.Security.DevOps.Cli
66+
$toolsPath = Join-Path ("Microsoft.Security.DevOps.Cli*" | Resolve-Path) tools
67+
$env:Path = "$toolsPath;$env:Path"
68+
$env:GDN_CREDSCAN_TARGETDIRECTORY = (Resolve-Path $env:Scan_Folder).Path
69+
guardian init -f
70+
guardian run -t CredScan
71+
5672
- task: PowerShell@2
5773
displayName: Generate a response text file for BinSkim
5874
inputs:

.azure-pipelines/sync-tools-folder.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ trigger:
1111
paths:
1212
include:
1313
- .azure-pipelines
14+
- .devcontainer
1415
- tools
1516
- src/lib
1617
- .ci-config.json

.azure-pipelines/util/get-github-pat-steps.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
steps:
22
- task: AzurePowerShell@5
33
inputs:
4+
pwsh: true
45
azureSubscription: '$(AzureSubscription)'
56
ScriptType: 'InlineScript'
67
Inline: |

.devcontainer/devcontainer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
}
1414
},
1515

16-
// Set *default* container specific settings.json values on container create.
17-
"settings": {},
18-
19-
// Add the IDs of extensions you want installed when the container is created.
20-
"extensions": [
21-
"ms-dotnettools.csharp"
22-
],
16+
"customizations": {
17+
"vscode": {
18+
"extensions": [
19+
"ms-dotnettools.csharp"
20+
]
21+
}
22+
},
2323

2424
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2525
// "forwardPorts": [5000, 5001],

0 commit comments

Comments
 (0)