From 45d1abf2d4cd0d7de44a943c33c65d79031aab58 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Tue, 11 Aug 2020 11:14:44 -0700 Subject: [PATCH] Attempt to upgrade release scripts Summary: We got a heads-up from the GitHub support that the way we use our access tokens is deprecated and will soon stop working. More details here: https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/ Reviewed By: jknoxville Differential Revision: D23003718 fbshipit-source-id: e2a493be97cdc81161791a1bb07864853ca5049c --- scripts/public-ios-release.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/public-ios-release.json b/scripts/public-ios-release.json index 1cc82266b..01eb93b9e 100644 --- a/scripts/public-ios-release.json +++ b/scripts/public-ios-release.json @@ -15,7 +15,7 @@ "name": "Publish to github", "required": true, "shell": - "curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v__VERSION__\", \"target_commitish\": \"master\", \"name\": \"v__VERSION__\", \"body\": \"\", \"draft\": false, \"prerelease\": true}' https://api.github.com/repos/facebook/flipper/releases?access_token=$(secrets_tool get SONAR_GITHUB_TOKEN)", + "curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v__VERSION__\", \"target_commitish\": \"master\", \"name\": \"v__VERSION__\", \"body\": \"\", \"draft\": false, \"prerelease\": true}' -H 'Authorization: token '$(secrets_tool get FLIPPER_GITHUB_TOKEN) https://api.github.com/repos/facebook/flipper/releases", "shell_type": "SandcastleLocalShell" } ]