Closed yassinecc closed 1 year ago
Hi @yassinecc
thanks for your interest in the script.
curl -u should be functionally equivalent to setting the authorization header yourself.
And there seems to be a glitch there in the GH script.
Can you try to update this line as follows
curl -s -u $user:$connectionToken $BaseAPI/repos/$org/$Name/branches | jq -r '.[].name' | while read -r BrancheName ;
And let me know how it goes?
Hello @sylvain-combe-sonarsource
Yes it works fine :+1: Should I make a PR for it?
curl -s -u github_pat_xxxx: https://api.github.com/repos/my_org/my_repo/branches
gives
I had to change the curl to
curl -s --header "Authorization: Bearer github_pat_xxxx" https://api.github.com/repos/my_org/my_repo/branches
Can the script use an authentication method with a high rate limit?