Skip to content

Commit 6688085

Browse files
ennyjfrickclaude
andauthored
[OPS-1301] Use baton-ci app token in capabilities_and_config.yaml (#147)
Replace the long-lived RELENG_GITHUB_TOKEN PAT with a short-lived baton-ci app token scoped to the current repo. Mirrors the OPS-1300 templated workflow pattern; needed before the temp org-admin mitigation can safely be removed. Linear: https://linear.app/ductone/issue/OPS-1301 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5dc39e7 commit 6688085

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/capabilities_and_config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,19 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14+
- name: Mint baton-ci app token
15+
id: ci-token
16+
uses: actions/create-github-app-token@v2
17+
with:
18+
app-id: ${{ vars.BATON_CI_CLIENT_ID }}
19+
private-key: ${{ secrets.BATON_CI_SECRET_KEY }}
20+
owner: ${{ github.repository_owner }}
21+
repositories: ${{ github.event.repository.name }}
22+
1423
- name: Checkout code
1524
uses: actions/checkout@v4
1625
with:
17-
token: ${{ secrets.RELENG_GITHUB_TOKEN }}
26+
token: ${{ steps.ci-token.outputs.token }}
1827

1928
- name: Setup Go
2029
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)