Regenerate key and prevent leakage

This commit is contained in:
vitaut
2015-05-21 19:29:45 -07:00
parent 0022e0b40f
commit efba235246
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ if build == 'Doc':
if travis:
cmd += ' https://$KEY@github.com/cppformat/cppformat.github.io.git master'
p = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT, cwd=repo)
# Remove URL from output because it may contain a token.
print(re.sub(r'https:.*\.git', '<url>', p.communicate()[0]))
# Print the output without the key.
print(p.communicate()[0].replace(os.environ['KEY'], '$KEY'))
if p.returncode != 0:
raise CalledProcessError(p.returncode, cmd)
exit(0)