Least Privilege and Least Data
We aim to ingest only the minimum data possible to provide you with metrics. For GitHub you remain in control of this by providing WayFinder with a GitHub fine-grained PAT. By using a fine-grained PAT you define both the accessible repositories and the access permissions for those repositories.
This fine-grained PAT can be used for connecting both Source Control and CICD Pipeline data sources to WayFinder. If you have previously created a PAT for WayFinder can skip this section and reuse the token you previously created. If you no longer have a copy of that token, just create a new one but do not delete or regenerate the previous token or the other data source will stop working.
Creating a Fine-Grained PAT
Follow the instructions from GitHub for creating-a-fine-grained-personal-access-token.
Resource Owner
Select the most appropriate resource owner (the owner of the repositories). If the resource owner is an organisation, make sure to get the PAT approved before using it.
Which repositories should I include?
Only include access to the repositories that are relevant to the product you have registered in WayFinder. Metrics for the product are aggregated in WayFinder across all the repositories accessible to the PAT.
What permissions are needed?
We aim to use least privilege and therefore only the following permissions are needed to be added to the fine-grained PAT:
- Repository.metadata:read
- Repository.actions.read
- Repository.pull_requests:read