Skip to content

Commit

Permalink
Fix github dependency submission API call (#162)
Browse files Browse the repository at this point in the history
* Update entrypoint.sh

* Update entrypoint.sh

* Update entrypoint.sh
  • Loading branch information
chejn authored Aug 17, 2022
1 parent 1db49f5 commit d63413b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d63413b

Please sign in to comment.