From 27c2fe3cd4e1abdcdf8ce69fddfc8e4a8f8ef100 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Fri, 3 Oct 2025 11:01:39 -0700 Subject: [PATCH 1/2] Fix CodeQL configuration Removed unnecessary comments and updated trigger settings. --- .pipelines/PSResourceGet-Official.yml | 29 +++++++++------------------ 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/.pipelines/PSResourceGet-Official.yml b/.pipelines/PSResourceGet-Official.yml index cc51e2e78..9dacd1a5e 100644 --- a/.pipelines/PSResourceGet-Official.yml +++ b/.pipelines/PSResourceGet-Official.yml @@ -1,14 +1,5 @@ -################################################################################# -# OneBranch Pipelines # -# This pipeline was created by EasyStart from a sample located at: # -# https://aka.ms/obpipelines/easystart/samples # -# Documentation: https://aka.ms/obpipelines # -# Yaml Schema: https://aka.ms/obpipelines/yaml/schema # -# Retail Tasks: https://aka.ms/obpipelines/tasks # -# Support: https://aka.ms/onebranchsup # -################################################################################# name: PSResourceGet-Release-$(Build.BuildId) -trigger: none # https://aka.ms/obpipelines/triggers +trigger: none pr: branches: include: @@ -36,7 +27,7 @@ resources: ref: refs/heads/main extends: - template: v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates # https://aka.ms/obpipelines/templates + template: v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates parameters: featureFlags: WindowsHostVersion: '1ESWindows2022' @@ -49,18 +40,16 @@ extends: enabled: true packageName: Microsoft.PowerShell.PSResourceGet codeql: + tsaEnabled: true compiled: enabled: true - asyncSdl: # https://aka.ms/obpipelines/asyncsdl + credscan: enabled: true - forStages: [stagebuild] - credscan: - enabled: true - scanFolder: $(Build.SourcesDirectory)\PSResourceGet - binskim: - enabled: true - apiscan: - enabled: false + scanFolder: $(Build.SourcesDirectory)\PSResourceGet + binskim: + enabled: true + apiscan: + enabled: false stages: - stage: stagebuild From e814f87bf2e8dc412e313cc90fd72e99abd0375a Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Fri, 3 Oct 2025 11:11:05 -0700 Subject: [PATCH 2/2] Update areaPath in tsaoptions.json --- .config/tsaoptions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/tsaoptions.json b/.config/tsaoptions.json index 692eaec1f..f1c0afb59 100644 --- a/.config/tsaoptions.json +++ b/.config/tsaoptions.json @@ -1,7 +1,7 @@ { "instanceUrl": "https://msazure.visualstudio.com", "projectName": "One", - "areaPath": "One\\MGMT\\Compute\\Powershell\\Powershell\\PowerShell Core", + "areaPath": "One\\MGMT\\Compute\\Powershell\\Powershell\\PowerShell Core\\PSResourceGet", "notificationAliases": [ "adityap@microsoft.com", "americks@microsoft.com",