-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Trying to use nurl
on a private repository, I get an error:
HTTP error 404
response body:
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest/commits/commits#get-a-commit"
}
Error: command exited with exit status: 1
I see in the source code that no token are set.
Would it be possible to read optional token from env variable for example GITHUB_TOKEN
. Or to be able to specify it via CLI, for example via --token
?
For those interested, my current workaround it to use (this is based on some comments I found in a github issue, but I forgot to write down the author name, I adapted it to fix the deprecation warning):
nix-shell -p nix-prefetch-git jq --run "nix hash convert --hash-algo sha256 --to sri \$(nix-prefetch-git --url https://github.com/USER/REPO --quiet --rev TAG | jq -r '.sha256')"
Of course this just gives me the sha256, which is just what I need for now.
Have a nice day.
Metadata
Metadata
Assignees
Labels
No labels