liatrio / liatrio-otel-collector

The Liatrio distribution of the OpenTelemetry Collector
https://openo11y.dev
Apache License 2.0
36 stars 4 forks source link

What permissions does GitHub PAT need? #448

Closed agardnerIT closed 4 weeks ago

agardnerIT commented 1 month ago

I can't find this info anywhere in the repo.

adrielp commented 1 month ago

@agardnerIT - for PATs, the basic set of permissions needed are:

The setting varies between classic and fine-grained. The queries under the hood are all read queries, there is no write. They read repos, orgs, branches, commits, metadata, issues, pull requests, and GHAS security events.

I generally recommend using the GitHub App Authentication Extension for authentication instead as GitHub Apps use OAUTH and are more secure, locks down permissions better, and increases rate limits.

We'll take the action item to add documentation to the GitHub Scraper defining the PAT permissions.