Skip to content

Commit a283f94

Browse files
authored
chore: bump dependencices (#172)
* - `@actions/tool-cache` v2.0.0 should not have any relevant breaking changes for us: - https://github.com/actions/toolkit/blob/main/packages/tool-cache/RELEASES.md - `@octokit/rest` v19/v20 should also not affect us: - https://github.com/octokit/rest.js/releases/tag/v19.0.0 - https://github.com/octokit/rest.js/releases/tag/v20.0.0 - Except: https://github.com/octokit/octokit.js/#fetch-missing Fixes #170 * chore: use Node.js 20 instead node18 is LTS as of today, but not supported in GitHub Actions, so using node20 instead as per actions/runner#2619 (comment).
1 parent 53a5c23 commit a283f94

8 files changed

Lines changed: 14948 additions & 10873 deletions

File tree

.github/workflows/checkin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Use Node.js
1313
uses: actions/setup-node@v3
1414
with:
15-
node-version: 18.x
15+
node-version: 20
1616
- name: Install dependencies
1717
run: npm ci
1818
- name: Run tests

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ branding:
44
icon: terminal
55
author: 'Max Schmitt'
66
runs:
7-
using: 'node16'
7+
using: 'node20'
88
main: 'lib/index.js'
99
post: 'lib/index.js'
1010
post-if: '!cancelled()'

jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ module.exports = {
22
clearMocks: true,
33
testEnvironment: 'node',
44
verbose: true,
5-
collectCoverage: true
5+
collectCoverage: true,
6+
transform: {
7+
"^.+\\.(js)$": "babel-jest",
8+
},
69
}

lib/index.js

Lines changed: 10995 additions & 6161 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 3930 additions & 4697 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
"author": "Max Schmitt <max@schmitt.mx>",
2222
"license": "MIT",
2323
"dependencies": {
24-
"@actions/core": "^1.4.0",
25-
"@actions/github": "^5.0.0",
26-
"@actions/tool-cache": "^1.7.1",
27-
"@octokit/rest": "^18.9.0"
24+
"@actions/core": "^1.10.0",
25+
"@actions/github": "^5.1.1",
26+
"@actions/tool-cache": "^2.0.1",
27+
"@octokit/rest": "^20.0.1"
2828
},
2929
"devDependencies": {
30-
"@babel/core": "^7.15.0",
31-
"@babel/preset-env": "^7.15.0",
32-
"@vercel/ncc": "^0.33.3",
33-
"babel-jest": "^27.0.6",
34-
"jest": "^27.0.6",
35-
"jest-circus": "^27.0.6"
30+
"@babel/core": "^7.22.11",
31+
"@babel/preset-env": "^7.22.14",
32+
"@vercel/ncc": "^0.36.1",
33+
"babel-jest": "^29.6.4",
34+
"jest": "^29.6.4",
35+
"jest-circus": "^29.6.4"
3636
}
3737
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export async function run() {
132132
if (limitAccessToActor === "true" || limitAccessToActor === "auto") {
133133
const { actor, apiUrl } = github.context
134134
const auth = core.getInput('github-token')
135-
const octokit = new Octokit({ auth, baseUrl: apiUrl })
135+
const octokit = new Octokit({ auth, baseUrl: apiUrl, request: { fetch }});
136136

137137
const keys = await octokit.users.listPublicKeysForUser({
138138
username: actor

src/index.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ jest.mock("fs", () => ({
99
mkdirSync: () => true,
1010
existsSync: () => true,
1111
unlinkSync: () => true,
12-
writeFileSync: () => true
12+
writeFileSync: () => true,
13+
promises: new Proxy({}, {
14+
get: () => {
15+
return () => true
16+
}
17+
})
1318
}));
1419
jest.mock('./helpers', () => {
1520
const originalModule = jest.requireActual('./helpers');

0 commit comments

Comments
 (0)