diff options
author | Matt Sylvia <msylvia@nukefile.net> | 2020-02-05 00:57:46 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2020-02-05 00:59:10 +0300 |
commit | 75a7ff235acef8c89da3bc3511773c9843c042f5 (patch) | |
tree | 52f45cfb10206ab7e1deb673d56a4bf8f6506dfc | |
parent | 05dc198dfc784e0f36849b4c067a5d37380c460c (diff) |
Update deprecated query parameter to header (#18705)
Use of `access_token` is now deprecated, switching to HTTP header
```
Please use the Authorization HTTP header instead, as using the `access_token` query parameter is deprecated.
```
(cherry picked from commit 2f74ab393fe23fd09f80f9f1e87a1b7b5ae4ba8e)
-rwxr-xr-x | scripts/ci/util.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ci/util.sh b/scripts/ci/util.sh index 88bea715f45..8b2978c24f5 100755 --- a/scripts/ci/util.sh +++ b/scripts/ci/util.sh @@ -7,7 +7,7 @@ function report_github_status { if [ -z "${ghprbActualCommit}" ]; then echo "Not a pull request. Skipping GitHub manual status report."; return 1; fi; if [ -z "${GITHUB_STATUS_AUTH_TOKEN}" ]; then echo "No auth token specified. Skipping GitHub manual status report."; return 1; fi; - wget -qO- --header "Content-Type: application/json" --post-data "{\"state\": \"$1\", \"context\":\"$2\", \"description\": \"$3\", \"target_url\": \"$4\"}" "https://api.github.com/repos/mono/mono/statuses/${ghprbActualCommit}?access_token=${GITHUB_STATUS_AUTH_TOKEN}" + wget -qO- --header "Content-Type: application/json" --header "Authorization: token ${GITHUB_STATUS_AUTH_TOKEN}" --post-data "{\"state\": \"$1\", \"context\":\"$2\", \"description\": \"$3\", \"target_url\": \"$4\"}" "https://api.github.com/repos/mono/mono/statuses/${ghprbActualCommit}" } function helix_set_env_vars { |