Skip to content

Commit df4963c

Browse files
benhillisCopilot
andauthored
Pipelines: exclude .ps1 from CodeSign in package stage (#40653)
The Guardian CodeSign post-analysis in the package job is failing on in-repo .ps1 scripts (collect-wsl-logs.ps1, deploy/*.ps1, etc.) that are not shipped and don't need signing. PR #40541 fixed this for the build job and added the exclusion as a pipeline-level variable, but the package job in package-stage.yml declares its own variables block and OneBranch's SDL injection only honors ob_sdl_* variables at job scope, so the pipeline-level value isn't applied. Add ob_sdl_codeSignValidation_excludes: -|**\*.ps1 to the package job's variables, mirroring what build-job.yml does. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 34cb2eb commit df4963c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.pipelines/package-stage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ stages:
4545
ob_outputDirectory: '$(Build.SourcesDirectory)\out'
4646
ob_artifactBaseName: 'drop_wsl'
4747
ob_artifactSuffix: '_package'
48+
ob_sdl_codeSignValidation_excludes: -|**\*.ps1
4849
buildStagePackageVersion: $[ stageDependencies.build_x64.build_x64.outputs['version.WSL_PACKAGE_VERSION'] ]
4950
buildStageNugetVersion: $[ stageDependencies.build_x64.build_x64.outputs['version.WSL_NUGET_PACKAGE_VERSION'] ]
5051

0 commit comments

Comments
 (0)