Skip to content

Commit 093cc07

Browse files
committed
ci: use GitHub App authentication in social and cleanup workflows
Updated remaining workflows to use iterate-evolve GitHub App: - social.yml: uses app token for GitHub API and commits - cleanup.yml: uses app token for branch deletion All workflows now consistently use the bot identity instead of personal access tokens.
1 parent 168d0b9 commit 093cc07

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/cleanup.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@ jobs:
1313
cleanup:
1414
runs-on: ubuntu-latest
1515
steps:
16+
- name: Generate GitHub App token
17+
id: generate-token
18+
uses: tibdex/github-app-token@v2
19+
with:
20+
app_id: ${{ secrets.APP_ID }}
21+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
22+
1623
- uses: actions/checkout@v4
1724
with:
1825
fetch-depth: 0
26+
token: ${{ steps.generate-token.outputs.token }}
1927

2028
- name: Configure git
2129
run: |
@@ -24,7 +32,7 @@ jobs:
2432
2533
- name: Delete merged branches
2634
env:
27-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
2836
run: |
2937
# Get all evolution branches
3038
git fetch origin

.github/workflows/social.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,17 @@ jobs:
1616
env:
1717
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
1818
steps:
19+
- name: Generate GitHub App token
20+
id: generate-token
21+
uses: tibdex/github-app-token@v2
22+
with:
23+
app_id: ${{ secrets.APP_ID }}
24+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
25+
1926
- uses: actions/checkout@v4
2027
with:
2128
fetch-depth: 0
29+
token: ${{ steps.generate-token.outputs.token }}
2230

2331
- uses: actions/checkout@v4
2432
with:
@@ -53,7 +61,7 @@ jobs:
5361
OPENCODE_BASE_URL: https://opencode.ai/zen/go/v1
5462
ITERATE_PROVIDER: opencode
5563
ITERATE_MODEL: mimo-v2-pro-free
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
5765
run: |
5866
bash scripts/social/social.sh
5967

0 commit comments

Comments
 (0)