Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit795df26

Browse files
Revert "Add windows signing for pwsh.exe" (#25586)
1 parent0bc29ef commit795df26

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

‎.pipelines/templates/obp-file-signing.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -84,31 +84,6 @@ steps:
8484
files_to_sign:'**\*.psd1;**\*.psm1;**\*.ps1xml;**\*.ps1;**\*.dll;**\*.exe;**\pwsh'
8585
search_root:$(Pipeline.Workspace)/toBeSigned
8686

87-
-task:onebranch.pipeline.signing@1
88-
displayName:Sign pwsh.exe with Windows cert
89-
inputs:
90-
command:'sign'
91-
cp_code:'203'
92-
files_to_sign:'**\pwsh.exe'
93-
search_root:$(Pipeline.Workspace)/toBeSigned
94-
95-
-pwsh:|
96-
if (Test-Path $(Pipeline.Workspace)/toBeSigned/pwsh.exe) {
97-
Write-Verbose -Verbose "pwsh.exe is found, verifying signature"
98-
$signature = Get-AuthenticodeSignature -FilePath $(Pipeline.Workspace)/toBeSigned/pwsh.exe
99-
if ($signature.SignerCertificate.Issuer -notmatch '^CN=Microsoft Windows Production.*') {
100-
Write-Error -ErrorAction Stop "pwsh.exe is not signed by Microsoft"
101-
}
102-
else {
103-
Write-Verbose -Verbose "pwsh.exe is signed by Microsoft"
104-
}
105-
}
106-
else {
107-
Write-Verbose -Verbose "pwsh.exe is not found, skipping"
108-
}
109-
110-
displayName:'Verify windows signature'
111-
11287
-pwsh :|
11388
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
11489
displayName:Capture environment

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp