Skip to content

Update required permissions listed in README.rst #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

adamsmd
Copy link
Contributor

@adamsmd adamsmd commented Dec 29, 2024

Removed unused permissions, and changed names to those currently used by GitHub.

  • code: renamed to contents as used by GitHub
  • commit statuses: removed because not used by github-backup
  • pages: removed because not used by github-backup
  • repository hooks: renamed to webhooks as used by GitHub

For the "commit statuses" and "pages" permissions, I could not find any indication in the code that
the "status", "statuses", "pages" endpoints are used. See https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28#repository-permissions-for-commit-statuses and https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28#repository-permissions-for-pages.

Removed unused permissions, and changed names to those currently used by GitHub.

- code: renamed to contents as used by GitHub
- commit statuses: removed because not used by github-backup
- pages: removed because not used by github-backup
- repository hooks: renamed to webhooks as used by GitHub
@josegonzalez josegonzalez merged commit 2e72797 into josegonzalez:master Jan 4, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants