From 530667b327f40da4392bd53649901a31e2f64c6f Mon Sep 17 00:00:00 2001 From: Stella Huang Date: Thu, 19 Nov 2026 13:59:18 -0800 Subject: [PATCH] Remove abandoned DevDiv static analysis pipeline The standalone pipeline was never cut over and was superseded by the team decision to consolidate security checks into the 1ES release and pre-release flow. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../devdiv/static-analysis.yml | 136 ------------------ 1 file changed, 136 deletions(-) delete mode 100644 build/azure-pipelines/devdiv/static-analysis.yml diff --git a/build/azure-pipelines/devdiv/static-analysis.yml b/build/azure-pipelines/devdiv/static-analysis.yml deleted file mode 100644 index ad21dccca6d0..000000000000 --- a/build/azure-pipelines/devdiv/static-analysis.yml +++ /dev/null @@ -1,136 +0,0 @@ -############################################################################################### -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -############################################################################################### - -name: $(Date:yyyyMMdd)$(Rev:.r) - -trigger: none -pr: none - -resources: - repositories: - - repository: MicroBuildTemplate - type: git - name: 1ESPipelineTemplates/MicroBuildTemplate - ref: refs/tags/release - -variables: - - name: TeamName - value: vscode-python - - name: Codeql.SkipTaskAutoInjection - value: true - - name: skipNugetSecurityAnalysis - value: true - -extends: - template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate - parameters: - settings: - networkIsolationPolicy: Preferred,GitHub,NodeTool - sdl: - sourceAnalysisPool: - name: AzurePipelines-EO - image: 1ESPT-Windows2022 - os: windows - bandit: - enabled: false - antimalwareScan: - enabled: true - componentgovernance: - enabled: true - ignoreDirectories: .github,build,news - credscan: - enabled: true - verboseOutput: true - eslint: - enabled: false - policheck: - enabled: true - publishLogs: - enabled: true - sdtReport: - enabled: true - tsa: - enabled: false - pool: - name: AzurePipelines-EO - image: 1ESPT-Windows2022 - os: windows - - customBuildTags: - - ES365AIMigrationTooling - - stages: - - stage: StaticAnalysis - displayName: Static analysis - jobs: - - job: StaticAnalysis - displayName: Static analysis - templateContext: - sdl: - publishLogs: - enabled: false - outputs: - - output: pipelineArtifact - targetPath: '$(Build.ArtifactStagingDirectory)\bandit' - artifactName: BanditResults - isProduction: false - steps: - - checkout: self - clean: true - fetchDepth: 0 - - - task: UsePythonVersion@0 - inputs: - versionSpec: 3.x - addToPath: true - architecture: x64 - displayName: Use Python 3.x - - - pwsh: | - $pythonFiles = Get-ChildItem -Path '$(Build.SourcesDirectory)\python_files' -Filter '*.py' -Recurse -File | - Where-Object { $_.FullName -notlike '*\python_files\tests\*' } - if ($pythonFiles.Count -eq 0) { - throw 'Bandit target contains no Python files.' - } - - Write-Host "Bandit will scan $($pythonFiles.Count) Python files." - displayName: Verify Bandit target - - - task: Bandit@1 - continueOnError: true - inputs: - aggregate: vuln - baseline: '' - configFile: '' - contextLines: '' - customRules: '' - debug: false - excludedPaths: '' - ignoreNosec: false - minConfidence: low - minSeverity: Low - policyName: Microsoft - profile: '' - quiet: false - ruleset: guardian - skippedRules: '' - targets: 'f|$(Build.SourcesDirectory)\python_files\**\*.py;-|.gdn\**;-|$(Build.SourcesDirectory)\python_files\tests\**\*.py' - targetsBandit: $(Build.SourcesDirectory) - targetsBanditRecursive: true - targetsType: guardianGlob - verbose: false - displayName: Run Bandit - - - pwsh: | - $banditResults = '$(Pipeline.Workspace)\.gdn\.r\bandit' - if (-not (Test-Path -LiteralPath $banditResults -PathType Container)) { - throw "Bandit results directory was not found: $banditResults" - } - if (-not (Get-ChildItem -LiteralPath $banditResults -Filter '*.sarif' -Recurse -File)) { - throw "Bandit SARIF was not found: $banditResults" - } - - Copy-Item -LiteralPath $banditResults -Destination '$(Build.ArtifactStagingDirectory)' -Recurse -Force - displayName: Stage Bandit results