caarlos0 / fork-cleaner

Quickly clean up unused forks on your github account.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

public SAML repo forks break the CLI

CamiloGarciaLaRotta opened this issue Β· comments

πŸ‘‹πŸ½ heyo, neat tool!

What

Running the tool on a fork of a SAML repo results in the following error message:

Error gathering the repository list: failed to get repository's issues: CamiloGarciaLaRotta/rest-api-description: GET https://api.github.com/repos/github/rest-api-description/issues?creator=CamiloGarciaLaRotta&per_page=100: 403 Resource protected by organization SAML enforcement. You must grant your Personal Access token access to this organization. [].
Check the log file for more details.

A couple of things:

  • the organization for which to authorize the PAT is not present in the list
  • it would be neat if one could still access forks from non SAML orgs. I don't necessarily want to authorize the PAT for every org
  • the log file is empty

The good news is that once the PAT is authorized it works as expected πŸŽ‰

the log file is empty

I observed that well on macOS Catalina 10.15.7 (19H15), both for the fork-cleaner.log file that apears in the current working directory, as well as the empty Library/Logs/Homebrew/fork-cleaner directory.

hey, thanks for opening this

happy to review a pr fixing this! πŸ™

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.