We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fd2c69 commit 2e70bbaCopy full SHA for 2e70bba
release/0-get-latest-dependencies-versions.sh
@@ -44,11 +44,17 @@ retrieveLatestVersion() {
44
LATEST_VERSION_EXTRACTOR="tail"
45
fi
46
47
+ AUTH_ARG=""
48
+ if [[ -v GITHUB_TOKEN ]]; then
49
+ AUTH_ARG="-H 'Authorization: Bearer $GITHUB_TOKEN'"
50
+ fi
51
+
52
GITHUB_RESPONSE="$(curl -s \
53
-D "$HEADERS_FILE" \
54
--etag-save "$ETAG_FILE" \
55
-H "If-None-Match: $ETAG" \
56
-H "Accept: application/vnd.github.v3+json" \
57
+ $AUTH_ARG \
58
"https://api.github.com/repos/$REPO/$ENDPOINT")"
59
60
STATUS_CODE_LINE="$(cat "$HEADERS_FILE" | head -n 1)"
0 commit comments