Skip to content
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

Docs don't specify which permisssions to use #268

Open
ahpook opened this issue Nov 12, 2024 · 2 comments
Open

Docs don't specify which permisssions to use #268

ahpook opened this issue Nov 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ahpook
Copy link
Contributor

ahpook commented Nov 12, 2024

Describe the bug

The docs should be more explicit about which permissions the app needs to run.

Image

To Reproduce

Read the docs, attempt to follow them....

Expected behavior

You should be able to get things working

Screenshots

No response

Additional context

No response

@ahpook ahpook added the bug Something isn't working label Nov 12, 2024
@ahpook ahpook self-assigned this Nov 12, 2024
@riley-kohler
Copy link
Contributor

When creating our GitHub apps I wrote up this list of instructions that might help when adding this info to the docs.

To create the GitHub app:

  • Go to organization settings -> developer settings -> github apps -> register new github app
  • For homepage url use the github app readme: https://github.com/github-community-projects/private-mirrors#readme
  • For callback url use: http://localhost:3000/api/auth/callback/github
  • Set webhook url to: http://localhost:3000/api/webhooks and set a secret
  • Add permissions to the GitHub app based on the default_permissions listed in the app.yml:
    • Repository
      • Actions - read & write
      • Administration - read & write
      • Contents - read & write
      • Custom properties - read & write
      • Metadata - read-only (is mandatory by default)
      • Workflows - read & write
    • Organization
      • Administration - read-only
      • Custom properties - admin
      • Members - read-only
    • Account
      • Email addresses - read-only
  • In "Subscribe to events" section check the following:
    • Installation target
    • Meta
    • Branch protection rule
    • Fork
    • Public
    • Push
    • Repository
    • Repository dispatch
    • Workflow dispatch
    • Workflow job
    • Workflow run

@riley-kohler
Copy link
Contributor

Then for the Envs I wrote descriptions on where to get values:

  • APP_ID - retrieve from app settings page
  • GITHUB_CLIENT_ID - retrieve from app settings page
  • GITHUB_CLIENT_SECRET - generate on app settings page
  • PRIVATE_KEY - generate at bottom of app settings page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants