We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 569d10b commit 6b347f4Copy full SHA for 6b347f4
.github/run_esrp_signing.py
@@ -4,6 +4,7 @@
4
import pprint
5
import subprocess
6
import sys
7
+import re
8
9
esrp_tool = os.path.join("esrp", "tools", "EsrpClient.exe")
10
@@ -96,8 +97,17 @@
96
97
"-p", "policy.json",
98
"-o", esrp_out,
99
"-l", "Verbose"],
100
+ capture_output=True,
101
+ text=True,
102
cwd=workspace)
103
104
+# Scrub log before printing
105
+log = re.sub(r'^.+Uploading.*to\s*destinationUrl\s*(.+?),.+$',
106
+ '***',
107
+ result.stdout,
108
+ flags=re.IGNORECASE|re.MULTILINE)
109
+printf(log)
110
+
111
if result.returncode != 0:
112
print("Failed to run ESRPClient.exe")
113
sys.exit(1)
0 commit comments