Rather hacky solution to security issues :(
This commit is contained in:
parent
0ae32f80d3
commit
349ac17388
1 changed files with 5 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue