Skip to content

Commit e5346df

Browse files
authored
Merge pull request #1022 from AArnott/libtemplateUpdate
Merge latest Library.Template
2 parents 6a15319 + 1363f6e commit e5346df

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
// Needs to be explicitly configured: https://github.com/Microsoft/azure-pipelines-vscode#document-formatting
2121
"[azure-pipelines]": {
2222
"editor.defaultFormatter": "esbenp.prettier-vscode",
23-
"editor.formatOnSave": false // enable this when the conform
23+
"editor.formatOnSave": false // enable this when they conform
2424
},
2525
}

azure-pipelines/InsertionMetadataPackage.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
2-
<package >
2+
<package>
3+
<!-- This file is only used in repos where OptProf is enabled. -->
34
<metadata>
45
<id>StreamJsonRpc.VSInsertionMetadata</id>
56
<version>$version$</version>

azure-pipelines/apiscan.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@ jobs:
77
displayName: APIScan
88
dependsOn: Windows
99
pool: ${{ parameters.windowsPool }}
10+
timeoutInMinutes: 120
11+
templateContext:
12+
outputs:
13+
- output: pipelineArtifact
14+
displayName: 📢 collect apiscan artifact
15+
targetPath: $(Pipeline.Workspace)/.gdn/.r/apiscan/001/Logs
16+
artifactName: apiscan-logs
1017
variables:
1118
- name: SymbolsFeatureName
1219
value: $[ dependencies.Windows.outputs['SetPipelineVariables.SymbolsFeatureName'] ]
1320
- name: NBGV_MajorMinorVersion
1421
value: $[ dependencies.Windows.outputs['nbgv.NBGV_MajorMinorVersion'] ]
1522
- ${{ if eq(variables['system.collectionId'], '011b8bdf-6d56-4f87-be0d-0092136884d9') }}:
1623
# https://dev.azure.com/devdiv/DevDiv/_wiki/wikis/DevDiv.wiki/25351/APIScan-step-by-step-guide-to-setting-up-a-Pipeline
17-
- group: VSExtensibility-APIScan # Expected to provide ApiScanClientId, ApiScanSecret, ApiScanTenant
24+
- group: VSEng sponsored APIScan # Expected to provide ApiScanClientId
1825
steps:
1926
# We need TSAOptions.json
2027
- checkout: self
@@ -32,12 +39,14 @@ jobs:
3239
softwareVersionNum: $(NBGV_MajorMinorVersion)
3340
isLargeApp: false
3441
toolVersion: Latest
42+
preserveLogsFolder: true
3543
env:
36-
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
44+
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId)
3745

3846
# File bugs when APIScan finds issues
3947
- task: TSAUpload@2
4048
displayName: 🪳 TSA upload
4149
inputs:
4250
GdnPublishTsaOnboard: True
4351
GdnPublishTsaConfigFile: $(Build.SourcesDirectory)\azure-pipelines\TSAOptions.json
52+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))

azure-pipelines/artifacts/APIScanInputs.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ $inputs = & "$PSScriptRoot/symbols.ps1"
22

33
if (!$inputs) { return }
44

5-
# Filter out specific files that APIScan does not support.
6-
# Specifically, APIScan doesn't support Windows ARM64 binaries, nor linux/OSX binaries.
5+
# Filter out specific files that target OS's that are not subject to APIScan.
6+
# Files that are subject but are not supported must be scanned and an SEL exception filed.
77
$outputs = @{}
88
$forbiddenSubPaths = @(
9-
, 'arm64'
10-
, 'win-arm64'
119
, 'linux-*'
1210
, 'osx*'
1311
)

azure-pipelines/vs-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ extends:
4141
- template: /azure-pipelines/prepare-insertion-stages.yml@self
4242
parameters:
4343
ArchiveSymbols: false
44-
RealSign: ${{ parameters.RealSign }}
44+
RealSign: true
4545

4646
- stage: insertion
4747
displayName: VS insertion

0 commit comments

Comments
 (0)