 Build Documentation Test Fails Due to "Bad Credentials" Error
NONE
how were you able to fix this please?
2025-01-08T21:47:13Z
https://github.com/huggingface/datasets/issues/7305#issuecomment-2578730022
https://api.github.com/repos/huggingface/datasets/issues/7305
IC_kwDODunzps6ZtEwm
https://api.github.com/repos/huggingface/datasets/issues/comments/2578730022/reactions
2025-01-08T21:47:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2578730022
https://avatars.githubusercontent.com/u/111099974?v=4
https://api.github.com/users/NedxLab/events{/privacy}
https://api.github.com/users/NedxLab/followers
https://api.github.com/users/NedxLab/following{/other_user}
https://api.github.com/users/NedxLab/gists{/gist_id}
https://github.com/NedxLab
NedxLab
U_kgDOBp9ARg
https://api.github.com/users/NedxLab/orgs
https://api.github.com/users/NedxLab/received_events
https://api.github.com/users/NedxLab/repos
https://api.github.com/users/NedxLab/starred{/owner}{/repo}
https://api.github.com/users/NedxLab/subscriptions
User
https://api.github.com/users/NedxLab
public
CONTRIBUTOR
> how were you able to fix this please?

I was not able to fix this.
2025-01-08T22:38:13Z
https://github.com/huggingface/datasets/issues/7305#issuecomment-2578812583
https://api.github.com/repos/huggingface/datasets/issues/7305
IC_kwDODunzps6ZtY6n
https://api.github.com/repos/huggingface/datasets/issues/comments/2578812583/reactions
2025-01-08T22:38:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2578812583
https://avatars.githubusercontent.com/u/31152346?v=4
https://api.github.com/users/ruidazeng/events{/privacy}
https://api.github.com/users/ruidazeng/followers
https://api.github.com/users/ruidazeng/following{/other_user}
https://api.github.com/users/ruidazeng/gists{/gist_id}
https://github.com/ruidazeng
ruidazeng
MDQ6VXNlcjMxMTUyMzQ2
https://api.github.com/users/ruidazeng/orgs
https://api.github.com/users/ruidazeng/received_events
https://api.github.com/users/ruidazeng/repos
https://api.github.com/users/ruidazeng/starred{/owner}{/repo}
https://api.github.com/users/ruidazeng/subscriptions
User
https://api.github.com/users/ruidazeng
public
### Describe the bug

The `Build documentation / build / build_main_documentation (push)` job is consistently failing during the "Syncing repository" step. The error occurs when attempting to determine the default branch name, resulting in "Bad credentials" errors.

### Steps to reproduce the bug

1. Trigger the `build_main_documentation` job.
2. Observe the logs during the "Syncing repository" step.

### Expected behavior

The workflow should be able to retrieve the default branch name without encountering credential issues.

### Environment info

```plaintext
Syncing repository: huggingface/notebooks
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/00e62748-9940-4a4f-bbbc-eb2cda6d7ed6' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/datasets/datasets/notebooks
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Determining the default branch
  Retrieving the default branch name
  Bad credentials - https://docs.github.com/rest
  Waiting 20 seconds before trying again
  Retrieving the default branch name
  Bad credentials - https://docs.github.com/rest
  Waiting 19 seconds before trying again
  Retrieving the default branch name
  Error: Bad credentials - https://docs.github.com/rest
```