Rather hacky solution to security issues :(

This commit is contained in:
Zack 2015-02-21 21:06:21 -05:00
parent 0ae32f80d3
commit 349ac17388

View file

@ -6,7 +6,11 @@ import os
branch = sys.argv[1]
tag_name = sys.argv[2]
name = sys.argv[3]
token = os.environ['GITHUB_TSHOCK_OAUTH']
#because we can't find any other secure way to get a token into this script run from bamboo :'(
with open('/home/bamboo/scripts/token.py') as f:
token = f.read().rsplit('=', 1)[1].strip()
body = 'This is the newest release for TShock. Please see the release thread for more information @ http://tshock.co/xf'
data = {'tag_name':tag_name, 'target_commitish':branch, 'name':name, 'body':body, 'draft':False, 'prerelease':False}