Skip to content

Commit 1100924

Browse files
authored
ci: replace OCTOKITBOT_PROJECT_ACTION_TOKEN and OCTOKITBOT_PAT with a token from https://github.com/apps/octokit (#1127)
Apply changes from octokit/endpoint.js#482 Part of octokit/maintainers#34
1 parent 2ccae5c commit 1100924

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/add_to_octokit_project.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
continue-on-error: true
1414
steps:
15+
- uses: actions/create-github-app-token@v1
16+
id: app-token
17+
with:
18+
app-id: ${{ vars.OCTOKIT_APP_ID }}
19+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
20+
owner: octokit
1521
- uses: actions/[email protected]
1622
with:
1723
project-url: https://github.com/orgs/octokit/projects/10
18-
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}
24+
github-token: ${{ steps.app-token.outputs.token }}
1925
labeled: "Status: Stale"
2026
label-operator: NOT

.github/workflows/update.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
update:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- uses: actions/create-github-app-token@v1
13+
id: app-token
14+
with:
15+
app-id: ${{ vars.OCTOKIT_APP_ID }}
16+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
17+
owner: octokit
1218
- uses: actions/checkout@v4
1319
- uses: actions/setup-node@v4
1420
with:
@@ -19,7 +25,7 @@ jobs:
1925
- name: create pull request
2026
uses: gr2m/[email protected]
2127
env:
22-
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
28+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
2329
with:
2430
title: 🚧 🤖📯 Webhooks changed
2531
body:

0 commit comments

Comments
 (0)