mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove AsyncSDL from Pipelines Toggle Official/NonOfficial Runs (#25885)
This commit is contained in:
@@ -68,11 +68,10 @@ extends:
|
||||
suppressionsFile: $(Build.SourcesDirectory)\.config\suppress.json
|
||||
binskim:
|
||||
enabled: false
|
||||
exactToolVersion: 4.4.2
|
||||
# APIScan requires a non-Ready-To-Run build
|
||||
apiscan:
|
||||
enabled: false
|
||||
asyncSDL:
|
||||
enabled: false
|
||||
tsaOptionsFile: .config/tsaoptions.json
|
||||
|
||||
stages:
|
||||
|
||||
@@ -30,6 +30,10 @@ parameters:
|
||||
displayName: Debugging - Enable CodeQL and set cadence to 1 hour
|
||||
type: boolean
|
||||
default: false
|
||||
- name: OfficialBuild
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
@@ -87,10 +91,18 @@ variables:
|
||||
value: true
|
||||
${{ else }}:
|
||||
value: false
|
||||
|
||||
- name: templateFile
|
||||
value: ${{ iif ( parameters.OfficialBuild, 'v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates', 'v2/OneBranch.NonOfficial.CrossPlat.yml@onebranchTemplates' ) }}
|
||||
# Fix for BinSkim ICU package error in Linux containers
|
||||
- name: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
|
||||
value: true
|
||||
# Disable BinSkim at job level to override NonOfficial template defaults
|
||||
- name: ob_sdl_binskim_enabled
|
||||
value: false
|
||||
|
||||
|
||||
extends:
|
||||
template: v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates
|
||||
template: ${{ variables.templateFile }}
|
||||
parameters:
|
||||
customTags: 'ES365AIMigrationTooling'
|
||||
featureFlags:
|
||||
@@ -98,6 +110,7 @@ extends:
|
||||
Network: KS3
|
||||
WindowsHostVersion:
|
||||
Network: KS3
|
||||
incrementalSDLBinaryAnalysis: true
|
||||
globalSdl:
|
||||
disableLegacyManifest: true
|
||||
# disabled Armorty as we dont have any ARM templates to scan. It fails on some sample ARM templates.
|
||||
@@ -116,19 +129,13 @@ extends:
|
||||
cg:
|
||||
enabled: true
|
||||
ignoreDirectories: '.devcontainer,demos,docker,docs,src,test,tools/packaging'
|
||||
asyncSdl:
|
||||
enabled: true
|
||||
forStages: [prep, macos, linux, windows, test_and_release_artifacts]
|
||||
credscan:
|
||||
enabled: true
|
||||
scanFolder: $(Build.SourcesDirectory)
|
||||
suppressionsFile: $(Build.SourcesDirectory)\PowerShell\.config\suppress.json
|
||||
binskim:
|
||||
enabled: false
|
||||
# APIScan requires a non-Ready-To-Run build
|
||||
apiscan:
|
||||
enabled: false
|
||||
tsaOptionsFile: .config\tsaoptions.json
|
||||
binskim:
|
||||
enabled: false
|
||||
exactToolVersion: 4.4.2
|
||||
# APIScan requires a non-Ready-To-Run build
|
||||
apiscan:
|
||||
enabled: false
|
||||
tsaOptionsFile: .config\tsaoptions.json
|
||||
|
||||
stages:
|
||||
- stage: prep
|
||||
|
||||
@@ -24,7 +24,10 @@ parameters: # parameters are shown up in ADO UI in a build queue time
|
||||
displayName: Skip Signing
|
||||
type: string
|
||||
default: 'NO'
|
||||
|
||||
- name: OfficialBuild
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
name: pkgs-$(BUILD.SOURCEBRANCHNAME)-$(Build.BuildId)
|
||||
|
||||
variables:
|
||||
@@ -61,6 +64,9 @@ variables:
|
||||
- name: branchCounter
|
||||
value: $[counter(variables['branchCounterKey'], 1)]
|
||||
- group: MSIXSigningProfile
|
||||
- name: templateFile
|
||||
value: ${{ iif ( parameters.OfficialBuild, 'v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates', 'v2/OneBranch.NonOfficial.CrossPlat.yml@onebranchTemplates' ) }}
|
||||
|
||||
|
||||
resources:
|
||||
pipelines:
|
||||
@@ -79,7 +85,7 @@ resources:
|
||||
ref: refs/heads/main
|
||||
|
||||
extends:
|
||||
template: v2/OneBranch.Official.CrossPlat.yml@templates
|
||||
template: ${{ variables.templateFile }}
|
||||
parameters:
|
||||
cloudvault:
|
||||
enabled: false
|
||||
@@ -88,6 +94,7 @@ extends:
|
||||
Version: 2022
|
||||
Network: KS3
|
||||
linuxEsrpSigning: true
|
||||
incrementalSDLBinaryAnalysis: true
|
||||
globalSdl:
|
||||
disableLegacyManifest: true
|
||||
# disabled Armorty as we dont have any ARM templates to scan. It fails on some sample ARM templates.
|
||||
@@ -104,19 +111,13 @@ extends:
|
||||
cg:
|
||||
enabled: true
|
||||
ignoreDirectories: '.devcontainer,demos,docker,docs,src,test,tools/packaging'
|
||||
asyncSdl:
|
||||
enabled: true
|
||||
forStages: ['build']
|
||||
credscan:
|
||||
enabled: true
|
||||
scanFolder: $(Build.SourcesDirectory)
|
||||
suppressionsFile: $(Build.SourcesDirectory)\PowerShell\.config\suppress.json
|
||||
binskim:
|
||||
enabled: false
|
||||
# APIScan requires a non-Ready-To-Run build
|
||||
apiscan:
|
||||
enabled: false
|
||||
tsaOptionsFile: .config\tsaoptions.json
|
||||
binskim:
|
||||
enabled: false
|
||||
exactToolVersion: 4.4.2
|
||||
# APIScan requires a non-Ready-To-Run build
|
||||
apiscan:
|
||||
enabled: false
|
||||
tsaOptionsFile: .config\tsaoptions.json
|
||||
stages:
|
||||
- stage: prep
|
||||
jobs:
|
||||
|
||||
@@ -13,6 +13,9 @@ parameters: # parameters are shown up in ADO UI in a build queue time
|
||||
displayName: Skip Signing
|
||||
type: string
|
||||
default: 'NO'
|
||||
- name: OfficialBuild
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
name: ev2-$(BUILD.SOURCEBRANCHNAME)-$(Build.BuildId)
|
||||
|
||||
@@ -46,6 +49,9 @@ variables:
|
||||
- name: LinuxContainerImage
|
||||
value: mcr.microsoft.com/onebranch/cbl-mariner/build:2.0
|
||||
- group: PoolNames
|
||||
- name: templateFile
|
||||
value: ${{ iif ( parameters.OfficialBuild, 'v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates', 'v2/OneBranch.NonOfficial.CrossPlat.yml@onebranchTemplates' ) }}
|
||||
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
@@ -67,13 +73,14 @@ resources:
|
||||
- releases/*
|
||||
|
||||
extends:
|
||||
template: v2/OneBranch.Official.CrossPlat.yml@templates
|
||||
template: ${{ variables.templateFile }}
|
||||
parameters:
|
||||
featureFlags:
|
||||
WindowsHostVersion:
|
||||
Version: 2022
|
||||
Network: Netlock
|
||||
linuxEsrpSigning: true
|
||||
incrementalSDLBinaryAnalysis: true
|
||||
cloudvault:
|
||||
enabled: false
|
||||
globalSdl:
|
||||
@@ -81,9 +88,6 @@ extends:
|
||||
# disabled Armory as we dont have any ARM templates to scan. It fails on some sample ARM templates.
|
||||
armory:
|
||||
enabled: false
|
||||
asyncSdl:
|
||||
enabled: true
|
||||
tsaOptionsFile: .config/tsaoptions.json
|
||||
tsa:
|
||||
enabled: true
|
||||
credscan:
|
||||
@@ -92,6 +96,7 @@ extends:
|
||||
suppressionsFile: $(Build.SourcesDirectory)\.config\suppress.json
|
||||
binskim:
|
||||
break: false # always break the build on binskim issues in addition to TSA upload
|
||||
exactToolVersion: 4.4.2
|
||||
policheck:
|
||||
break: true # always break the build on policheck issues. You can disable it by setting to 'false'
|
||||
tsaOptionsFile: .config\tsaoptions.json
|
||||
|
||||
@@ -25,6 +25,9 @@ parameters: # parameters are shown up in ADO UI in a build queue time
|
||||
displayName: Skip Copying Archives and Installers to PSInfrastructure Public Location
|
||||
type: boolean
|
||||
default: false
|
||||
- name: OfficialBuild
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
name: release-$(BUILD.SOURCEBRANCHNAME)-$(Build.BuildId)
|
||||
|
||||
@@ -58,6 +61,13 @@ variables:
|
||||
- name: ReleaseTagVar
|
||||
value: ${{ parameters.ReleaseTagVar }}
|
||||
- group: PoolNames
|
||||
- name: templateFile
|
||||
value: ${{ iif ( parameters.OfficialBuild, 'v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates', 'v2/OneBranch.NonOfficial.CrossPlat.yml@onebranchTemplates' ) }}
|
||||
- name: releaseEnvironment
|
||||
value: ${{ iif ( parameters.OfficialBuild, 'Production', 'Test' ) }}
|
||||
# Fix for BinSkim ICU package error in Linux containers
|
||||
- name: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
|
||||
value: true
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
@@ -83,7 +93,7 @@ resources:
|
||||
- releases/*
|
||||
|
||||
extends:
|
||||
template: v2/OneBranch.Official.CrossPlat.yml@templates
|
||||
template: ${{ variables.templateFile }}
|
||||
parameters:
|
||||
release:
|
||||
category: NonAzure
|
||||
@@ -91,6 +101,7 @@ extends:
|
||||
WindowsHostVersion:
|
||||
Version: 2022
|
||||
Network: KS3
|
||||
incrementalSDLBinaryAnalysis: true
|
||||
cloudvault:
|
||||
enabled: false
|
||||
globalSdl:
|
||||
@@ -98,9 +109,6 @@ extends:
|
||||
# disabled Armory as we dont have any ARM templates to scan. It fails on some sample ARM templates.
|
||||
armory:
|
||||
enabled: false
|
||||
asyncSdl:
|
||||
enabled: true
|
||||
tsaOptionsFile: .config/tsaoptions.json
|
||||
tsa:
|
||||
enabled: true
|
||||
credscan:
|
||||
@@ -109,6 +117,7 @@ extends:
|
||||
suppressionsFile: $(Build.SourcesDirectory)\.config\suppress.json
|
||||
binskim:
|
||||
break: false # always break the build on binskim issues in addition to TSA upload
|
||||
exactToolVersion: 4.4.2
|
||||
policheck:
|
||||
break: true # always break the build on policheck issues. You can disable it by setting to 'false'
|
||||
# suppression:
|
||||
@@ -279,7 +288,7 @@ extends:
|
||||
- setReleaseTagAndChangelog
|
||||
- UpdateChangeLog
|
||||
variables:
|
||||
ob_release_environment: Production
|
||||
ob_release_environment: ${{ parameters.releaseEnvironment }}
|
||||
jobs:
|
||||
- template: /.pipelines/templates/release-githubNuget.yml@self
|
||||
parameters:
|
||||
|
||||
@@ -93,11 +93,10 @@ extends:
|
||||
suppressionsFile: $(Build.SourcesDirectory)\.config\suppress.json
|
||||
binskim:
|
||||
enabled: false
|
||||
exactToolVersion: 4.4.2
|
||||
# APIScan requires a non-Ready-To-Run build
|
||||
apiscan:
|
||||
enabled: false
|
||||
asyncSDL:
|
||||
enabled: false
|
||||
tsaOptionsFile: .config/tsaoptions.json
|
||||
stages:
|
||||
- stage: main
|
||||
|
||||
Reference in New Issue
Block a user