Skip to content

Commit 2181a52

Browse files
chore(deps): modernize devDependencies, update @octokit/core, fix workflows (#419)
* chore(deps): update dependency @octokit/core to v7 * ci: replace usage of `OCTOKITBOT_TOKEN` with octokit app * style lint * ci: use node LTS for prettier * maint: modernize devDependencies --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <[email protected]>
1 parent f08fa24 commit 2181a52

13 files changed

+1625
-6180
lines changed

.github/pull_request_template.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
<!-- Please refer to our contributing docs for any questions on submitting a pull request -->
22
<!-- Issues are required for both bug fixes and features. -->
3+
34
Resolves #ISSUE_NUMBER
45

5-
----
6+
---
67

78
### Before the change?
9+
810
<!-- Please describe the current behavior that you are modifying. -->
911

10-
*
12+
-
1113

1214
### After the change?
15+
1316
<!-- Please describe the behavior or changes that are being added by this PR. -->
1417

15-
*
18+
-
1619

1720
### Pull request checklist
21+
1822
- [ ] Tests for the changes have been added (for bug fixes / features)
1923
- [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features)
2024

2125
### Does this introduce a breaking change?
26+
2227
<!-- If this introduces a breaking change make sure to note it here any what the impact might be -->
2328

2429
Please see our docs on [breaking changes](https://github.com/octokit/.github/blob/main/community/breaking_changes.md) to help!
2530

2631
- [ ] Yes
2732
- [ ] No
2833

29-
----
30-
34+
---

.github/renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"extends": [
3-
"github>octokit/.github"
4-
]
2+
"extends": ["github>octokit/.github"]
53
}

.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@v2
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/codeql.yml

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,43 @@ on:
88
branches-ignore:
99
- "dependabot/**"
1010
schedule:
11-
- cron: '0 19 * * 0'
11+
- cron: "0 19 * * 0"
1212

1313
jobs:
1414
CodeQL-Build:
15-
1615
# CodeQL runs on ubuntu-latest and windows-latest
1716
runs-on: ubuntu-latest
1817

1918
steps:
20-
- name: Checkout repository
21-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22-
with:
23-
# We must fetch at least the immediate parents so that if this is
24-
# a pull request then we can checkout the head.
25-
fetch-depth: 2
26-
27-
# Initializes the CodeQL tools for scanning.
28-
- name: Initialize CodeQL
29-
uses: github/codeql-action/init@v3
30-
# Override language selection by uncommenting this and choosing your languages
31-
# with:
32-
# languages: go, javascript, csharp, python, cpp, java
33-
34-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
35-
# If this step fails, then you should remove it and run the build manually (see below)
36-
- name: Autobuild
37-
uses: github/codeql-action/autobuild@v3
38-
39-
# ℹ️ Command-line programs to run using the OS shell.
40-
# 📚 https://git.io/JvXDl
41-
42-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
43-
# and modify them (or add more) to build your code if your project
44-
# uses a compiled language
45-
46-
#- run: |
47-
# make bootstrap
48-
# make release
49-
50-
- name: Perform CodeQL Analysis
51-
uses: github/codeql-action/analyze@v3
19+
- name: Checkout repository
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
21+
with:
22+
# We must fetch at least the immediate parents so that if this is
23+
# a pull request then we can checkout the head.
24+
fetch-depth: 2
25+
26+
# Initializes the CodeQL tools for scanning.
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v3
29+
# Override language selection by uncommenting this and choosing your languages
30+
# with:
31+
# languages: go, javascript, csharp, python, cpp, java
32+
33+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
34+
# If this step fails, then you should remove it and run the build manually (see below)
35+
- name: Autobuild
36+
uses: github/codeql-action/autobuild@v3
37+
38+
# ℹ️ Command-line programs to run using the OS shell.
39+
# 📚 https://git.io/JvXDl
40+
41+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
42+
# and modify them (or add more) to build your code if your project
43+
# uses a compiled language
44+
45+
#- run: |
46+
# make bootstrap
47+
# make release
48+
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@v3

.github/workflows/immediate-response.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ on:
1111
- opened
1212
jobs:
1313
respond-to-issue:
14-
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }}
14+
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' && github.actor != 'octokit[bot]' }}
1515
runs-on: ubuntu-latest
1616
steps:
17+
- uses: actions/create-github-app-token@v2
18+
id: app-token
19+
with:
20+
app-id: ${{ vars.OCTOKIT_APP_ID }}
21+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
22+
owner: octokit
1723
- name: Determine issue or PR number
1824
id: extract
1925
run: echo "NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
@@ -27,3 +33,4 @@ jobs:
2733
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.
2834
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`.
2935
You & others like you are the reason all of this works! So thank you & happy coding! 🚀
36+
token: ${{ steps.app-token.outputs.token }}

.github/workflows/release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,22 @@ name: Release
55
- main
66
# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
77
permissions:
8-
contents: write # to be able to publish a GitHub release
9-
issues: write # to be able to comment on released issues
10-
pull-requests: write # to be able to comment on released pull requests
11-
id-token: write # to enable use of OIDC for npm provenance
8+
contents: write # to be able to publish a GitHub release
9+
issues: write # to be able to comment on released issues
10+
pull-requests: write # to be able to comment on released pull requests
11+
id-token: write # to enable use of OIDC for npm provenance
1212

1313
jobs:
1414
release:
1515
name: release
1616
runs-on: ubuntu-latest
1717
steps:
18+
- uses: actions/create-github-app-token@v2
19+
id: app-token
20+
with:
21+
app-id: ${{ vars.OCTOKIT_APP_ID }}
22+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
23+
owner: octokit
1824
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1925
- uses: actions/setup-node@v4
2026
with:
@@ -24,5 +30,5 @@ jobs:
2430
- run: npm run build
2531
- run: npx semantic-release
2632
env:
27-
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
33+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
2834
NPM_TOKEN: ${{ secrets.OCTOKITBOT_NPM_TOKEN }}

.github/workflows/update-prettier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/setup-node@v4
1212
with:
1313
cache: npm
14-
node-version: 16
14+
node-version: lts/*
1515
- run: npm ci
1616
- run: npm run lint:fix
1717
- uses: gr2m/[email protected]

0 commit comments

Comments
 (0)