-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62300 from RikkiGibson/ft-update-from-main
Update "file types" from main
- Loading branch information
Showing
1,107 changed files
with
54,855 additions
and
14,194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# Name: DotNet-Roslyn-Compliance | ||
# URL: https://devdiv.visualstudio.com/DevDiv/_build?definitionId=16722 | ||
# | ||
# Responsible for running compliance checks. | ||
|
||
# | ||
# NOTE: triggers for this build are defined in the Web UI instead of here in the YAML file so they | ||
# apply to all branches. | ||
|
||
queue: | ||
name: VSEngSS-MicroBuild2022-1ES | ||
demands: Cmd | ||
timeoutInMinutes: 90 | ||
variables: | ||
BuildConfiguration: Release | ||
TeamName: DotNet-Roslyn | ||
SignType: test | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
_DevDivDropAccessToken: $(System.AccessToken) | ||
|
||
steps: | ||
- template: eng/pipelines/checkout-windows-task.yml | ||
|
||
- powershell: Write-Host "##vso[task.setvariable variable=SourceBranchName]$('$(Build.SourceBranch)'.Substring('refs/heads/'.Length))" | ||
displayName: Setting SourceBranchName variable | ||
|
||
- powershell: Write-Host "##vso[task.setvariable variable=VisualStudio.DropName]Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(Build.BuildNumber)" | ||
displayName: Setting VisualStudio.DropName variable | ||
|
||
- task: PowerShell@2 | ||
displayName: Build | ||
inputs: | ||
filePath: eng/build.ps1 | ||
arguments: -ci | ||
-restore | ||
-build | ||
-configuration $(BuildConfiguration) | ||
-officialBuildId $(Build.BuildNumber) | ||
-officialSkipTests true | ||
-officialSkipApplyOptimizationData true | ||
-officialSourceBranchName $(SourceBranchName) | ||
-officialVisualStudioDropAccessToken $(_DevDivDropAccessToken) | ||
/p:RepositoryName=$(Build.Repository.Name) | ||
/p:VisualStudioDropName=$(VisualStudio.DropName) | ||
|
||
- task: CopyFiles@2 | ||
# APIScan can take a long time, so here we copy (mostly) just the product binaries and related .pdbs | ||
# in an effort to limit what it needs to work on. | ||
displayName: Copy Roslyn assemblies for APIScan | ||
inputs: | ||
SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\Roslyn.VisualStudio.Setup\$(BuildConfiguration)\net472' # Limit to (mostly) product binaries | ||
Contents: | | ||
Microsoft.CodeAnalysis*.dll | ||
Microsoft.CodeAnalysis*.pdb | ||
Microsoft.VisualStudio.LanguageServices*.dll | ||
Microsoft.VisualStudio.LanguageServices*.pdb | ||
TargetFolder: '$(Agent.TempDirectory)\APIScanFiles' | ||
continueOnError: true | ||
|
||
- task: CopyFiles@2 | ||
displayName: Copy csc assemblies for APIScan | ||
inputs: | ||
SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\csc\$(BuildConfiguration)\net472' | ||
Contents: | | ||
csc.dll | ||
csc.pdb | ||
TargetFolder: '$(Agent.TempDirectory)\APIScanFiles' | ||
continueOnError: true | ||
|
||
- task: CopyFiles@2 | ||
displayName: Copy vbc assemblies for APIScan | ||
inputs: | ||
SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\vbc\$(BuildConfiguration)\net472' | ||
Contents: | | ||
vbc.dll | ||
vbc.pdb | ||
TargetFolder: '$(Agent.TempDirectory)\APIScanFiles' | ||
continueOnError: true | ||
|
||
- task: CopyFiles@2 | ||
displayName: Copy VBCSCompiler assemblies for APIScan | ||
inputs: | ||
SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\VBCSCompiler\$(BuildConfiguration)\net472' | ||
Contents: | | ||
VBCSCompiler.dll | ||
VBCSCompiler.pdb | ||
TargetFolder: '$(Agent.TempDirectory)\APIScanFiles' | ||
continueOnError: true | ||
|
||
- task: APIScan@2 | ||
# Scan for the use of undocumented APIs. | ||
displayName: Run APIScan | ||
inputs: | ||
softwareFolder: '$(Agent.TempDirectory)\APIScanFiles' # Only examine the product binaries we previously copied. | ||
softwareName: 'Dotnet-Roslyn' | ||
softwareVersionNum: '17.0' | ||
softwareBuildNum: '$(Build.BuildId)' | ||
symbolsFolder: 'SRV*http://symweb' | ||
env: | ||
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret) | ||
continueOnError: true | ||
|
||
- task: TSAUpload@2 | ||
# Scan the output of previous steps and create bugs for any problems. | ||
displayName: Upload results and create bugs | ||
inputs: | ||
GdnPublishTsaOnboard: true | ||
GdnPublishTsaConfigFile: '$(Build.SourcesDirectory)\eng\TSAConfig.gdntsa' # All relevant settings are in this file. | ||
continueOnError: true | ||
|
||
- task: PublishSecurityAnalysisLogs@3 | ||
displayName: Publishing analysis artifacts | ||
inputs: | ||
ArtifactName: 'CodeAnalysisLogs' | ||
ArtifactType: 'Container' # Associate the artifacts with the build. | ||
AllTools: true # Look for logs from all tools. | ||
ToolLogsNotFoundAction: 'Standard' # If a log is not found just output a message to that effect. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.