From 4fcb02fbd20d4cbc1fa2337b700bfb257969c989 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Mon, 18 Jan 2021 17:10:29 +0100 Subject: [PATCH] Pass access tokens via header in GitHub workflow. Closes #3491 (#3492) --- .github/workflows/release_manager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release_manager.sh b/.github/workflows/release_manager.sh index 4d551a5fa..c37b6731c 100755 --- a/.github/workflows/release_manager.sh +++ b/.github/workflows/release_manager.sh @@ -5,4 +5,4 @@ API_JSON=$(printf '{"tag_name": "%s","target_commitish": "master","name": "OpenRefine snapshot %s","body": "This is a snapshot of the development version of OpenRefine, made on %s.\\n\\nThis contains the latest new features and bug fixes, but might not have been tested as thoroughly as official releases.\\n\\nMake sure you [back up your workspace](https://github.com/OpenRefine/OpenRefine/wiki/Back-Up-OpenRefine-Data) to avoid data loss and report any issues found with this version on [the mailing list](https://groups.google.com/forum/#!forum/openrefine).","draft": false,"prerelease": true}' ${OR_VERSION} ${OR_VERSION} "$(date -u +"%c")" ) # Create Release -echo $( curl --silent --data "${API_JSON}" "https://api.github.com/repos/${RELEASE_REPO_OWNER}/OpenRefine-snapshot-releases/releases?access_token=${RELEASE_REPO_TOKEN}" | jq -r '.upload_url' ) +echo $( curl --silent -H 'Authorization: token ${RELEASE_REPO_TOKEN}' --data "${API_JSON}" "https://api.github.com/repos/${RELEASE_REPO_OWNER}/OpenRefine-snapshot-releases/releases" | jq -r '.upload_url' )