Skip to content

Commit eaf7c55

Browse files
authored
Merge branch 'main' into feat/agentcore-oauth-2-0b
2 parents 87718b2 + e432060 commit eaf7c55

33 files changed

Lines changed: 2855 additions & 60 deletions

agent/README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ The Docker image is built for `linux/arm64` to match AgentCore Runtime requireme
1515

1616
### GitHub PAT — Minimal Permissions
1717

18-
Create a **fine-grained PAT** at GitHub > Settings > Developer settings > Personal access tokens > Fine-grained tokens.
18+
Two token types work. Choose based on your access model:
19+
20+
#### Fine-grained PAT (recommended for repos you own)
21+
22+
Go to GitHub > **Settings** > **Developer settings** > **Fine-grained tokens**.
1923

2024
**Repository access**: Select only the specific repo(s) the agent will work on.
2125

@@ -26,7 +30,29 @@ Create a **fine-grained PAT** at GitHub > Settings > Developer settings > Person
2630
| **Issues** | Read | Fetch issue title, body, and comments for context |
2731
| **Metadata** | Read | Granted by default |
2832

29-
No other permissions are needed.
33+
**Limitation:** Fine-grained PATs can only target repos you own or repos in organizations that have opted in to fine-grained token access. If you are a collaborator on someone else's repo (or an org that hasn't enabled the feature), the repo won't appear in the token creation UI.
34+
35+
#### Classic PAT (required for collaborator/cross-org access)
36+
37+
Use a classic PAT when fine-grained tokens cannot reach the target repository — typically when you are a collaborator on a repo owned by another user or an organization that has not enabled fine-grained token access.
38+
39+
Go to GitHub > **Settings** > **Developer settings** > **Personal access tokens** > **Tokens (classic)**.
40+
41+
| Scope | Reason |
42+
|-------|--------|
43+
| `repo` | Full repository access (clone, push, PRs, issues) |
44+
| `read:org` | Resolve org membership for org-owned repos |
45+
46+
Set an expiration (90 days recommended) and store it in Secrets Manager the same way as a fine-grained token.
47+
48+
#### When to use which
49+
50+
| Scenario | Token type |
51+
|----------|-----------|
52+
| Your own repos or your org has fine-grained enabled | Fine-grained |
53+
| Collaborator on another user's repo | Classic |
54+
| Org has not opted in to fine-grained tokens | Classic |
55+
| Targeting repos across multiple orgs | Classic (single token covers all) |
3056

3157
### AWS Credentials
3258

cdk/bootstrap/BOOTSTRAP_HASH

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4892570024965c2e99ef0d9f7ef0a61e4b939ba69c5df52e4bc1647522dad283
1+
a24d14dde94c546fdf94c7839492e92f612ae91def4660aaacab48d8e8da3146

cdk/bootstrap/BOOTSTRAP_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.1.0

0 commit comments

Comments
 (0)