Test github pipeline to auto approve a flake bump.
-
Follow this guide: https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app
-
Create a GitHub app
auto-approve-appin your GH organization- github.com// -> Settings -> Developer Settings -> GitHub Apps -> New GitHub App
- Add a name and Homepage URL
- Add Repository Permissions
- Actions: RO
- Contents: RW
- Metadata: RO
- Pull Requests: RW
- Workflows: RW
- github.com// -> Settings -> Developer Settings -> GitHub Apps -> New GitHub App
-
Install this app into your organization
- github.com// -> Settings -> Developer Settings -> GitHub Apps -> Select
auto-approve-app-> Install App- Only select repositories:
- Only select repositories:
- github.com// -> Settings -> Developer Settings -> GitHub Apps -> Select
-
Find app_id
- github.com// -> Settings -> Developer Settings -> GitHub Apps -> Select
auto-approve-app - you find the app_id in the
Generalsection
- github.com// -> Settings -> Developer Settings -> GitHub Apps -> Select
-
Create app client secret
- github.com// -> Settings -> Developer Settings -> GitHub Apps -> Select
auto-approve-app-> Client secrets - The private key will be downloaded using your browser
- Save it in 1Password or vault
- github.com// -> Settings -> Developer Settings -> GitHub Apps -> Select
-
Create two organization secrets:
- GH_AUTO_APPROVE_APP_ID
- GH_AUTO_APPROVE_APP_PRIVATE_KEY