From 349ac17388ec71b2ebd0bc5d85940c1317f60d2d Mon Sep 17 00:00:00 2001 From: Zack Date: Sat, 21 Feb 2015 21:06:21 -0500 Subject: [PATCH] Rather hacky solution to security issues :( --- deploy_release.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy_release.py b/deploy_release.py index f92e5326..0944c289 100644 --- a/deploy_release.py +++ b/deploy_release.py @@ -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}