-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-app-manifest.yml
More file actions
46 lines (37 loc) · 1.84 KB
/
github-app-manifest.yml
File metadata and controls
46 lines (37 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# GitHub App Manifest
# Documents the minimum permissions and events required by this GitHub App.
# Reference: https://docs.github.com/en/apps/sharing-github-apps/registering-a-github-app-from-a-manifest
#
# This file serves as living documentation. It can also be used with GitHub's
# "Register a GitHub App from a manifest" flow to create a correctly configured app.
name: GitHub Copier
description: Copies code examples between repositories when pull requests are merged.
url: https://github.com/grove-platform/github-copier
# --- Permissions ---
# The minimum set of permissions needed for the app to function.
default_permissions:
# Read & Write: read source files, create branches/trees/commits, push to target repos,
# read config repos, update deprecation files.
contents: write
# Read & Write: read changed files via GraphQL, create PRs in target repos,
# check mergeability, auto-merge PRs.
pull_requests: write
# Read: implicit for all GitHub Apps; required for basic repository access.
metadata: read
# --- Webhook Events ---
# The app only needs the pull_request event. It processes merged PRs
# (action == "closed" && merged == true) and ignores all other events.
default_events:
- pull_request
# --- Installation ---
# The app must be installed in every organization whose repositories it accesses:
# - Source repos (where PRs trigger the webhook)
# - Target repos (where files are copied to)
# - Config repo (where workflow YAML files live)
#
# The app discovers per-org installation IDs at runtime via GET /app/installations
# and creates scoped installation access tokens for each org.
# --- Webhook Configuration ---
# The app listens on /events for webhook deliveries.
# Configure the webhook URL to point to your Cloud Run service URL + /events.
# A webhook secret (WEBHOOK_SECRET) should always be configured in production.