Skip to content

Commit e2e9e6e

Browse files
authored
ci: replace OCTOKITBOT_PROJECT_ACTION_TOKEN and OCTOKITBOT_PAT with a token from https://github.com/apps/octokit (#489)
* ci: replace `OCTOKITBOT_PROJECT_ACTION_TOKEN` and `OCTOKITBOT_PAT` with a token from https://github.com/apps/octokit * remove owner where not needed
1 parent d59338c commit e2e9e6e

File tree

6 files changed

+34
-6
lines changed

6 files changed

+34
-6
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/immediate-response.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }}
1515
runs-on: ubuntu-latest
1616
steps:
17+
- uses: actions/create-github-app-token@v1
18+
id: app-token
19+
with:
20+
app-id: ${{ vars.OCTOKIT_APP_ID }}
21+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
1722
- name: Determine issue or PR number
1823
id: extract
1924
run: echo "NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
@@ -27,3 +32,4 @@ jobs:
2732
We have a [process in place](https://github.com/octokit/.github/blob/main/community/prioritization_response.md#overview) for prioritizing and responding to your input.
2833
Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with `Status: Up for grabs`.
2934
You & others like you are the reason all of this works! So thank you & happy coding! 🚀
35+
token: ${{ steps.app-token.outputs.token }}

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
name: release
1919
runs-on: ubuntu-latest
2020
steps:
21+
- uses: actions/create-github-app-token@v1
22+
id: app-token
23+
with:
24+
app-id: ${{ vars.OCTOKIT_APP_ID }}
25+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
26+
owner: octokit
2127
- uses: actions/checkout@v4
2228
- uses: actions/setup-node@v4
2329
with:
@@ -26,5 +32,5 @@ jobs:
2632
- run: npm ci
2733
- run: npx semantic-release
2834
env:
29-
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
35+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3036
NPM_TOKEN: ${{ secrets.OCTOKITBOT_NPM_TOKEN }}

.github/workflows/update-prettier.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ jobs:
88
update_prettier:
99
runs-on: ubuntu-latest
1010
steps:
11+
- uses: actions/create-github-app-token@v1
12+
id: app-token
13+
with:
14+
app-id: ${{ vars.OCTOKIT_APP_ID }}
15+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
1116
- uses: actions/checkout@v4
1217
- uses: actions/setup-node@v4
1318
with:
@@ -17,7 +22,7 @@ jobs:
1722
- run: npm run lint:fix
1823
- uses: gr2m/[email protected]
1924
env:
20-
GITHUB_TOKEN: \${{ secrets.OCTOKITBOT_PAT }}
25+
GITHUB_TOKEN: \${{ steps.app-token.outputs.token }}
2126
with:
2227
title: Prettier updated
2328
body: An update to prettier required updates to your code.

.github/workflows/update.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ jobs:
77
update:
88
runs-on: ubuntu-latest
99
steps:
10+
- uses: actions/create-github-app-token@v1
11+
id: app-token
12+
with:
13+
app-id: ${{ vars.OCTOKIT_APP_ID }}
14+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
1015
- uses: actions/checkout@v4
1116
- uses: actions/setup-node@v4
1217
with:
1318
cache: npm
14-
node-version: 18
19+
node-version: lts/*
1520
- run: npm ci
1621
- run: npm run download
1722
# Temporary disabled generating diff files
@@ -30,7 +35,7 @@ jobs:
3035
- name: update cache
3136
uses: gr2m/[email protected]
3237
env:
33-
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
38+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3439
with:
3540
title: 🤖📯 GitHub OpenAPI Update
3641
body: >

.github/workflows/update_dry_run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/setup-node@v4
2222
with:
2323
cache: npm
24-
node-version: 18
24+
node-version: lts/*
2525
- run: npm ci
2626
- run: npm run download
2727
# - uses: actions/checkout@v4

0 commit comments

Comments
 (0)