Skip to content

Commit a0d08a9

Browse files
committed
chore(sync-github): add new org scopes
Add octo-sts scopes to manage roles via IAC.
1 parent 58ae9f1 commit a0d08a9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/chainguard/sync-github.sts.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ claim_pattern:
77
job_workflow_ref: chainguard-dev/infra/.github/workflows/.terraform.yaml@.*
88

99
permissions:
10-
organization_administration: write # required to manage organization rulesets
1110
administration: write # required to manage the repository
1211
contents: write # required per terraform docs (https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository)
1312
members: write # to add/remove GitHub members
1413
metadata: read # to read metadata about the org
15-
14+
organization_administration: write # required to manage organization rulesets
15+
organization_custom_org_roles: write # required for managing custom organization roles
16+
organization_custom_roles: write # required for managing custom repository roles
1617
repositories: [] # Act over all of the repos in the org.

.github/chainguard/verify-github.sts.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ claim_pattern:
77
job_workflow_ref: chainguard-dev/infra/.github/workflows/.terraform.yaml@.*
88

99
permissions:
10-
organization_administration: write # required to read organization rulesets
1110
administration: read # required to read the repository
1211
contents: write # required per terraform docs (https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository)
1312
members: read # to add/remove GitHub members
1413
metadata: read # to read metadata about the org
15-
14+
organization_administration: write # required to read organization rulesets
15+
organization_custom_org_roles: read # required for reading custom organization roles
16+
organization_custom_roles: read # required for reading custom repository roles
1617
repositories: [] # Act over all of the repos in the org.

0 commit comments

Comments
 (0)