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:58:48 +0300 |
commit | e65846bfd3106c85ffbd096a6f4c6559dbff797d (patch) | |
tree | 1ed18ab97c110f095bf61e13b1c435a612e4c17a | |
parent | 0011444f0b60cc122cfc768e348434a2a3c2d2c4 (diff) |
Update deprecated query parameter to header (#18705)mono-6.10.0.65
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 { |