Skip to content

Commit

Permalink
Merge pull request myoung34#170 from jensbaitingerbosch/patch-1
Browse files Browse the repository at this point in the history
fixing HTTP/1.1 411 Length Required
  • Loading branch information
myoung34 authored Jan 6, 2022
2 parents a3bfdb6 + c0539df commit 111dfab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fi
API_VERSION=v3
API_HEADER="Accept: application/vnd.github.${API_VERSION}+json"
AUTH_HEADER="Authorization: token ${ACCESS_TOKEN}"
CONTENT_LENGTH_HEADER="Content-Length: 0"

case ${RUNNER_SCOPE} in
org*)
Expand All @@ -34,6 +35,7 @@ case ${RUNNER_SCOPE} in
esac

RUNNER_TOKEN="$(curl -XPOST -fsSL \
-H "${CONTENT_LENGTH_HEADER}" \
-H "${AUTH_HEADER}" \
-H "${API_HEADER}" \
"${_FULL_URL}" \
Expand Down

0 comments on commit 111dfab

Please sign in to comment.