mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Regenerate key and prevent leakage
This commit is contained in:
@ -7,9 +7,9 @@ os:
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: |-
|
- secure: |-
|
||||||
jEPN5RbGT8o+zN8ybGoTzJ1m7gjP/D8vaf5V+A2ZDMayKHXdGMmVtA5FjI9B1aSiq0P4nC
|
Gsnp9ERFnXt+diCfc7Vb72g+7HDn1MCHvw4zfUDdoBh9bxxFlLQRlzZZfwWhzni57lflrt
|
||||||
cbx2lUzQffJJruBqoSI7ZhWaFBNJejVFwOer3MlzxBdNOHOrJwwf1FpgypaheCHyLebQa5
|
0QHXafu+oBVOJuNv6WauV3+ZyuWIQRmNGjZFNLvZsXHK/dyad2vGQBPvEkb+8l/aCyTpbr
|
||||||
JIGZrLK2XoLb7s00FybNCZEgEvUT7W4=
|
6pxmyzLHSn1ZR7OX5rfPvwM3tOyZ3H0=
|
||||||
matrix:
|
matrix:
|
||||||
- BUILD=Doc
|
- BUILD=Doc
|
||||||
#- BUILD=Debug
|
#- BUILD=Debug
|
||||||
|
@ -49,8 +49,8 @@ if build == 'Doc':
|
|||||||
if travis:
|
if travis:
|
||||||
cmd += ' https://$KEY@github.com/cppformat/cppformat.github.io.git master'
|
cmd += ' https://$KEY@github.com/cppformat/cppformat.github.io.git master'
|
||||||
p = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT, cwd=repo)
|
p = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT, cwd=repo)
|
||||||
# Remove URL from output because it may contain a token.
|
# Print the output without the key.
|
||||||
print(re.sub(r'https:.*\.git', '<url>', p.communicate()[0]))
|
print(p.communicate()[0].replace(os.environ['KEY'], '$KEY'))
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise CalledProcessError(p.returncode, cmd)
|
raise CalledProcessError(p.returncode, cmd)
|
||||||
exit(0)
|
exit(0)
|
||||||
|
Reference in New Issue
Block a user