Skip to content

Commit

Permalink
api scan
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Feb 25, 2024
1 parent 0661eaf commit 2483032
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
71 changes: 71 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,77 @@ jobs:
npm run lint
displayName: 'Lint'
- job: Windows
dependsOn: []
pool:
vmImage: 'windows-latest'
strategy:
matrix:
node_18_x:
node_version: 18.x
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js'
- pwsh: |
$includes = @'
{
'target_defaults': {
'conditions': [
['OS=="win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
'/Zi',
'/FS'
],
},
'VCLinkerTool': {
'AdditionalOptions': [
'/profile'
]
}
}
}]
]
}
}
'@
if (!(Test-Path "~/.gyp")) {
mkdir "~/.gyp"
echo $includes > "~/.gyp/include.gypi"
}
displayName: Create include.gypi
- script: |
npm i
displayName: 'Install dependencies and build'
- task: APIScan@2
inputs:
softwareFolder: $(Build.SourcesDirectory)\build\Release
softwareName: "node-pty"
softwareVersionNum: '1'
isLargeApp: false
toolVersion: 'Latest'
displayName: Run ApiScan
condition: succeeded()
env:
AzureServicesAuthConnectionString: $(apiscan-connectionstring)

- task: PublishSecurityAnalysisLogs@3
inputs:
ArtifactName: CodeAnalysisLogs
ArtifactType: Container
PublishProcessedResults: false
AllTools: true

- task: TSAUpload@2
inputs:
GdnPublishTsaOnboard: true
GdnPublishTsaConfigFile: '$(Build.SourcesDirectory)\tsaoptions.json'

- job: Release
dependsOn:
- Linux
Expand Down
10 changes: 10 additions & 0 deletions tsaoptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"codebaseName": "devdiv_microsoft_vscode_node_pty",
"instanceUrl": "https://devdiv.visualstudio.com/defaultcollection",
"projectName": "DevDiv",
"areaPath": "DevDiv\\VS Code (compliance tracking only)\\Visual Studio Code NPM Packages",
"notificationAliases": [
"stbatt@microsoft.com",
"lszomoru@microsoft.com"
]
}

0 comments on commit 2483032

Please sign in to comment.