Skip to content

Commit 9d23fb9

Browse files
authoredMay 1, 2024··
feat(private-key): escaped newlines will be replaced (#132)
via https://github.com/gr2m/universal-github-app-jwt/releases/tag/v2.1.1
1 parent 3cef845 commit 9d23fb9

File tree

4 files changed

+311
-603
lines changed

4 files changed

+311
-603
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ jobs:
211211

212212
### `private-key`
213213

214-
**Required:** GitHub App private key.
214+
**Required:** GitHub App private key. Escaped newlines (`\\n`) will be automatically replaced with actual newlines.
215215

216216
### `owner`
217217

‎package-lock.json

+302-600
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"license": "MIT",
1414
"dependencies": {
1515
"@actions/core": "^1.10.1",
16-
"@octokit/auth-app": "^6.0.4",
16+
"@octokit/auth-app": "^7.0.0",
1717
"@octokit/request": "^9.0.1",
1818
"p-retry": "^6.2.0",
19-
"undici": "^6.11.1"
19+
"undici": "^6.15.0"
2020
},
2121
"devDependencies": {
2222
"@sinonjs/fake-timers": "^11.2.2",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { test, DEFAULT_ENV } from "./main.js";
2+
3+
// Verify `main` works correctly when `private-key` input has escaped newlines
4+
await test(() => {
5+
process.env['INPUT_PRIVATE-KEY'] = DEFAULT_ENV.PRIVATE_KEY.replace(/\n/g, '\\n')
6+
});

0 commit comments

Comments
 (0)
Please sign in to comment.