Skip to content

Commit 97cc7ce

Browse files
committed
chore: migrate dependent-issues workflow to GitHub App (leanprover-community#34748)
This PR migrates the `dependent-issues.yml` workflow from using a personal access token (`DEPENDENT_ISSUES_TOKEN` from `mathlib-dependent-issues-bot`) to using a GitHub App. 🤖 Prepared with Claude Code
1 parent 06d4f73 commit 97cc7ce

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/dependent-issues.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,17 @@ jobs:
2121
runs-on: ubuntu-latest
2222
if: github.repository == 'leanprover-community/mathlib4'
2323
steps:
24+
- name: Generate app token
25+
id: app-token
26+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
27+
with:
28+
app-id: ${{ secrets.MATHLIB_DEPENDENT_ISSUES_APP_ID }}
29+
private-key: ${{ secrets.MATHLIB_DEPENDENT_ISSUES_PRIVATE_KEY }}
30+
# The create-github-app-token README states that this token is masked and will not be logged accidentally.
2431
- uses: z0al/dependent-issues@75d554cd9494b6e1766bc9d08a81c26444ad5c5a
2532
env:
2633
# (Required) The token to use to make API calls to GitHub.
27-
GITHUB_TOKEN: ${{ secrets.DEPENDENT_ISSUES_TOKEN }}
34+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
2835
with:
2936
# (Optional) The label to use to mark dependent issues
3037
label: blocked-by-other-PR

0 commit comments

Comments
 (0)