Skip to content

Commit 2a415a3

Browse files
committed
ci: 👷 use app token
1 parent b517dca commit 2a415a3

10 files changed

+59
-27
lines changed

.github/workflows/bot-token.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/issue-label-assignee.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@ on:
88
pull_request:
99
types: [opened]
1010
jobs:
11-
label:
11+
run:
1212
runs-on: ubuntu-latest
1313
steps:
14+
- uses: bubkoo/use-app-token@v1
15+
id: generate_token
16+
with:
17+
app_id: ${{ secrets.APP_ID }}
18+
private_key: ${{ secrets.PRIVATE_KEY }}
1419
- uses: Naturalclar/[email protected]
1520
with:
16-
github-token: ${{ secrets.bot_token }}
21+
github-token: ${{ steps.generate_token.outputs.token }}
1722
title-or-body: title
1823
parameters: >
1924
[

.github/workflows/lock.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ on:
33
schedule:
44
- cron: 0 0 * * *
55
jobs:
6-
lock:
6+
run:
77
runs-on: ubuntu-latest
88
steps:
9+
- uses: bubkoo/use-app-token@v1
10+
id: generate_token
11+
with:
12+
app_id: ${{ secrets.APP_ID }}
13+
private_key: ${{ secrets.PRIVATE_KEY }}
914
- uses: dessant/lock-threads@v2
1015
with:
11-
github-token: ${{ secrets.bot_token }}
16+
github-token: ${{ steps.generate_token.outputs.token }}
1217
issue-lock-inactive-days: 365
1318
issue-lock-comment: >
1419
This thread has been automatically locked because it has not had recent

.github/workflows/needs-more-info.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ jobs:
88
run:
99
runs-on: ubuntu-latest
1010
steps:
11+
- uses: bubkoo/use-app-token@v1
12+
id: generate_token
13+
with:
14+
app_id: ${{ secrets.APP_ID }}
15+
private_key: ${{ secrets.PRIVATE_KEY }}
1116
- uses: bubkoo/needs-more-info@v1
1217
with:
13-
GITHUB_TOKEN: ${{ secrets.bot_token }}
18+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
1419
CONFIG_FILE: .github/workflows/config/needs-more-info.yml
1520

.github/workflows/potential-duplicates.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ jobs:
66
run:
77
runs-on: ubuntu-latest
88
steps:
9+
- uses: bubkoo/use-app-token@v1
10+
id: generate_token
11+
with:
12+
app_id: ${{ secrets.APP_ID }}
13+
private_key: ${{ secrets.PRIVATE_KEY }}
914
- uses: bubkoo/potential-duplicates@v1
1015
with:
11-
GITHUB_TOKEN: ${{ secrets.bot_token }}
16+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

.github/workflows/pr-label-branch-name.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ on:
33
pull_request:
44
types: [opened]
55
jobs:
6-
label:
6+
run:
77
runs-on: ubuntu-latest
88
steps:
9+
- uses: bubkoo/use-app-token@v1
10+
id: generate_token
11+
with:
12+
app_id: ${{ secrets.APP_ID }}
13+
private_key: ${{ secrets.PRIVATE_KEY }}
914
- uses: TimonVS/pr-labeler-action@v3
1015
with:
11-
GITHUB_TOKEN: ${{ secrets.bot_token }}
16+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
1217
configuration-path: .github/workflows/config/pr-label-branch-name.yml
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: 🏷️ Label(Patch Size)
22
on: pull_request
33
jobs:
4-
label:
4+
run:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v2
8+
- uses: bubkoo/use-app-token@v1
9+
id: generate_token
10+
with:
11+
app_id: ${{ secrets.APP_ID }}
12+
private_key: ${{ secrets.PRIVATE_KEY }}
813
- uses: pascalgn/[email protected]
914
env:
10-
GITHUB_TOKEN: "${{ secrets.bot_token }}"
15+
GITHUB_TOKEN: "${{ steps.generate_token.outputs.token }}"
1116
IGNORED: "!.gitignore\nyarn.lock"

.github/workflows/rebase.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ on:
33
issue_comment:
44
types: [created]
55
jobs:
6-
rebase:
6+
run:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10+
- uses: bubkoo/use-app-token@v1
11+
id: generate_token
12+
with:
13+
app_id: ${{ secrets.APP_ID }}
14+
private_key: ${{ secrets.PRIVATE_KEY }}
1015
- uses: cirrus-actions/rebase@master
1116
env:
12-
GITHUB_TOKEN: ${{ secrets.bot_token }}
17+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

.github/workflows/stale.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ jobs:
66
run:
77
runs-on: ubuntu-latest
88
steps:
9+
- uses: bubkoo/use-app-token@v1
10+
id: generate_token
11+
with:
12+
app_id: ${{ secrets.APP_ID }}
13+
private_key: ${{ secrets.PRIVATE_KEY }}
914
- uses: actions/stale@v3
1015
with:
11-
repo-token: ${{ secrets.bot_token }}
16+
repo-token: ${{ steps.generate_token.outputs.token }}
1217
stale-issue-message: >
1318
Hiya!
1419

.github/workflows/welcome.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ jobs:
88
run:
99
runs-on: ubuntu-latest
1010
steps:
11+
- uses: bubkoo/use-app-token@v1
12+
id: generate_token
13+
with:
14+
app_id: ${{ secrets.APP_ID }}
15+
private_key: ${{ secrets.PRIVATE_KEY }}
1116
- uses: bubkoo/welcome-action@v1
1217
with:
13-
GITHUB_TOKEN: ${{ secrets.bot_token }}
18+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
1419
FIRST_ISSUE: >
1520
👋 @{{ author }}
1621

0 commit comments

Comments
 (0)