Skip to content

Commit 6b81cfc

Browse files
updated readme with better details on authentication
1 parent 4359c5a commit 6b81cfc

1 file changed

Lines changed: 25 additions & 15 deletions

File tree

README.md

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ deployment records to GitHub's artifact metadata API.
3434
API
3535
5. Failed requests are automatically retried with exponential backoff
3636

37+
## Authentication
38+
39+
Two modes of authentication are supported:
40+
41+
1. Using PAT
42+
1. Using a [GtHub
43+
App](https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/about-creating-github-apps#building-a-github-app).
44+
45+
> [!NOTE] The provisioned API token or GitHub App must have
46+
> `artifact-metadata: write` with access to all relevant GitHub
47+
> repositories (i.e all GitHub repositories that produces container
48+
> images that are loaded into the cluster.
49+
3750
## Command Line Options
3851

3952
| Flag | Description | Default |
@@ -45,21 +58,18 @@ deployment records to GitHub's artifact metadata API.
4558

4659
## Environment Variables
4760

48-
| Variable | Description | Default |
49-
|------------------------|---------------------------|------------------------------------------------------|
50-
| `ORG` | GitHub organization name | (required) |
51-
| `BASE_URL` | API base URL | `api.github.com` |
52-
| `DN_TEMPLATE` | Deployment name template | `{{namespace}}/{{deploymentName}}/{{containerName}}` |
53-
| `LOGICAL_ENVIRONMENT` | Logical environment name | (required) |
54-
| `PHYSICAL_ENVIRONMENT` | Physical environment name | `""` |
55-
| `CLUSTER` | Cluster name | (required) |
56-
| `API_TOKEN` | API authentication token | `""` |
57-
58-
> [!NOTE]
59-
> The provisioned API token must have `artifact-metadata: write` with
60-
> access to all relevant GitHub repositories (i.e all GitHub
61-
> repositories that produces container images that are loaded into the
62-
> cluster.
61+
| Variable | Description | Default |
62+
|------------------------|--------------------------------------------|------------------------------------------------------|
63+
| `ORG` | GitHub organization name | (required) |
64+
| `BASE_URL` | API base URL | `api.github.com` |
65+
| `DN_TEMPLATE` | Deployment name template | `{{namespace}}/{{deploymentName}}/{{containerName}}` |
66+
| `LOGICAL_ENVIRONMENT` | Logical environment name | (required) |
67+
| `PHYSICAL_ENVIRONMENT` | Physical environment name | `""` |
68+
| `CLUSTER` | Cluster name | (required) |
69+
| `API_TOKEN` | API authentication token | `""` |
70+
| `GH_APP_ID` | GitHub App ID | `""` |
71+
| `GH_INSTALL_ID` | GitHub App installation ID | `""` |
72+
| `GH_APP_PRIV_KEY` | Path to the private key for the GitHub app | `""` |
6373

6474
### Template Variables
6575

0 commit comments

Comments
 (0)