Wrong token use #5

Open
opened 2024-09-26 14:45:43 +00:00 by mih · 2 comments
Owner

@matrss reports:

Lines 64 to 65 in eee0779
netloc=f'{environ["INPUT_TOKEN"]}@{serverurl_p.netloc}'
if environ.get("INPUT_TOKEN") else serverurl_p.netloc,

I think that should be using auth_token, which is set right above, instead of INPUT_TOKEN. The datalad-clone-action fails on a private repository, at least when not explicitly setting a token.

@matrss reports: https://hub.datalad.org/forgejo/datalad-clone-action/src/commit/eee0779214a28f769d89907c11fb608d60dfad73/entrypoint.py#L64-L65 I think that should be using auth_token, which is set right above, instead of INPUT_TOKEN. The datalad-clone-action fails on a private repository, at least when not explicitly setting a token.
mih closed this issue 2025-03-17 16:47:44 +00:00
Author
Owner

That wasn't sufficient.

That wasn't sufficient.
mih reopened this issue 2025-03-18 06:37:26 +00:00
Author
Owner

I think the test for is None is wrong and prevent GITHUB_TOKEN from being used. The env var is defined INPUT_TOKEN appears to be defined always, but is set to an empty string.

I think the test for `is None` is wrong and prevent GITHUB_TOKEN from being used. The env var is defined INPUT_TOKEN appears to be defined always, but is set to an empty string.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
forgejo/datalad-clone-action#5
No description provided.