Skip to content

Commit 88a0e28

Browse files
Host the Astral credential broker policy in-repo (#20603)
The credential broker's Lambda policy has reached its environment-size limit, preventing new narrowly scoped automation grants. Move the active broker rules into a versioned policy under `.github` so the broker can read them from protected `main` without storing the rule set in Lambda. Preserve the existing caller, reusable-workflow, event, target, and permission boundaries, including the uv-caller rebase grant. Add the missing uv-caller `diagnose-workflow-failure.yml` grant with only `issues: write` on `astral-sh/uv-dev`, allowing workflow-failure reporting to route there without granting upstream issue access or exposing the broker audience in the repository. The coordinated reader and fail-closed cache are in [open-security-tools/ost-simple-sts#20](open-security-tools/ost-simple-sts#20).
1 parent 219b232 commit 88a0e28

1 file changed

Lines changed: 122 additions & 0 deletions

File tree

‎.github/ost-simple-sts.json‎

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"version": 1,
3+
"rules": [
4+
{
5+
"subject": "repo:astral-sh/uv:environment:release",
6+
"repository": "astral-sh/uv",
7+
"repository_id": 699532645,
8+
"ref": "refs/heads/main",
9+
"workflow_path": ".github/workflows/release.yml",
10+
"allowed_events": ["workflow_dispatch"],
11+
"permissions": { "contents": "write", "workflows": "write" },
12+
"target_repository": "astral-sh/uv",
13+
"target_repository_id": 699532645
14+
},
15+
{
16+
"subject": "repo:astral-sh@115962839/uv-dev@1302176231:environment:automations",
17+
"repository": "astral-sh/uv-dev",
18+
"repository_id": 1302176231,
19+
"ref": "refs/heads/main",
20+
"workflow_path": ".github/workflows/promote-pull-request.yml",
21+
"allowed_events": ["workflow_dispatch"],
22+
"permissions": { "contents": "write", "pull_requests": "write" },
23+
"target_repositories": [
24+
{ "repository": "astral-sh/uv", "repository_id": 699532645 },
25+
{ "repository": "astral-sh/uv-dev", "repository_id": 1302176231 }
26+
],
27+
"target_installation_id": 146796415
28+
},
29+
{
30+
"subject": "repo:astral-sh/uv:environment:automations",
31+
"repository": "astral-sh/uv",
32+
"repository_id": 699532645,
33+
"ref": "refs/heads/main",
34+
"workflow_path": ".github/workflows/issue-triage.yml",
35+
"job_workflow_path": ".github/workflows/reproduce-bug.yml",
36+
"allowed_events": ["issues", "workflow_dispatch"],
37+
"permissions": { "contents": "write", "pull_requests": "write" },
38+
"target_repository": "astral-sh/uv-dev",
39+
"target_repository_id": 1302176231
40+
},
41+
{
42+
"subject": "repo:astral-sh/uv:environment:automations",
43+
"repository": "astral-sh/uv",
44+
"repository_id": 699532645,
45+
"ref": "refs/heads/main",
46+
"workflow_path": ".github/workflows/reproduce-bug.yml",
47+
"allowed_events": ["workflow_dispatch"],
48+
"permissions": { "contents": "write", "pull_requests": "write" },
49+
"target_repository": "astral-sh/uv-dev",
50+
"target_repository_id": 1302176231
51+
},
52+
{
53+
"subject": "repo:astral-sh/uv:environment:automations",
54+
"repository": "astral-sh/uv",
55+
"repository_id": 699532645,
56+
"ref": "refs/heads/main",
57+
"workflow_path": ".github/workflows/sync-uv-dev.yml",
58+
"allowed_events": ["push", "workflow_dispatch"],
59+
"permissions": { "contents": "write", "workflows": "write" },
60+
"target_repository": "astral-sh/uv-dev",
61+
"target_repository_id": 1302176231
62+
},
63+
{
64+
"subject": "repo:astral-sh/uv:environment:automations",
65+
"repository": "astral-sh/uv",
66+
"repository_id": 699532645,
67+
"ref": "refs/pull/*/merge",
68+
"workflow_path": ".github/workflows/ci.yml",
69+
"job_workflow_path": ".github/workflows/pull-request-security-review.yml",
70+
"allowed_events": ["pull_request"],
71+
"permissions": { "pull_requests": "write" },
72+
"target_repository": "astral-sh/uv",
73+
"target_repository_id": 699532645
74+
},
75+
{
76+
"subject": "repo:astral-sh@115962839/uv-dev@1302176231:environment:automations",
77+
"repository": "astral-sh/uv-dev",
78+
"repository_id": 1302176231,
79+
"ref": "refs/heads/main",
80+
"workflow_path": ".github/workflows/pull-request-conflicts.yml",
81+
"job_workflow_path": ".github/workflows/rebase-conflicted-pull-request.yml",
82+
"allowed_events": ["push", "workflow_dispatch"],
83+
"permissions": { "contents": "write", "workflows": "write" },
84+
"target_repository": "astral-sh/uv-dev",
85+
"target_repository_id": 1302176231
86+
},
87+
{
88+
"subject": "repo:astral-sh/uv:environment:automations",
89+
"repository": "astral-sh/uv",
90+
"repository_id": 699532645,
91+
"ref": "refs/heads/main",
92+
"workflow_path": ".github/workflows/pull-request-conflicts.yml",
93+
"job_workflow_path": ".github/workflows/rebase-conflicted-pull-request.yml",
94+
"allowed_events": ["push", "workflow_dispatch"],
95+
"permissions": { "contents": "write", "workflows": "write" },
96+
"target_repository": "astral-sh/uv-dev",
97+
"target_repository_id": 1302176231
98+
},
99+
{
100+
"subject": "repo:astral-sh@115962839/uv-dev@1302176231:environment:automations",
101+
"repository": "astral-sh/uv-dev",
102+
"repository_id": 1302176231,
103+
"ref": "refs/heads/main",
104+
"workflow_path": ".github/workflows/diagnose-workflow-failure.yml",
105+
"allowed_events": ["workflow_dispatch"],
106+
"permissions": { "issues": "write" },
107+
"target_repository": "astral-sh/uv-dev",
108+
"target_repository_id": 1302176231
109+
},
110+
{
111+
"subject": "repo:astral-sh/uv:environment:automations",
112+
"repository": "astral-sh/uv",
113+
"repository_id": 699532645,
114+
"ref": "refs/heads/main",
115+
"workflow_path": ".github/workflows/diagnose-workflow-failure.yml",
116+
"allowed_events": ["workflow_dispatch"],
117+
"permissions": { "issues": "write" },
118+
"target_repository": "astral-sh/uv-dev",
119+
"target_repository_id": 1302176231
120+
}
121+
]
122+
}

0 commit comments

Comments
 (0)