From d63413b0a4a4482237085319f7f4a1ce99a8f2ac Mon Sep 17 00:00:00 2001 From: chejn <41510168+chejn@users.noreply.github.com> Date: Thu, 18 Aug 2022 07:54:57 +1000 Subject: [PATCH] Fix github dependency submission API call (#162) * Update entrypoint.sh * Update entrypoint.sh * Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6b6f54f..2882612 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -186,7 +186,7 @@ fi if [[ "${format}" == "github" ]]; then if [[ "$(echo $githubPAT | xargs)" != "" ]]; then printf "\n Uploading GitHub Dependency Snapshot" - curl -u "${githubPAT}" -H 'Content-Type: application/json' 'https://api.github.com/repos/'$GITHUB_REPOSITORY'/dependency-graph/snapshots' -d @./$(echo $output | xargs) + curl -H 'Accept: application/vnd.github+json' -H "Authorization: token $githubPAT" 'https://api.github.com/repos/'$GITHUB_REPOSITORY'/dependency-graph/snapshots' -d @./$(echo $output | xargs) else printf "\n Failing GitHub Dependency Snapshot. Missing github-pat" fi