feat(private-key): escaped newlines will be replaced (#132)

via https://github.com/gr2m/universal-github-app-jwt/releases/tag/v2.1.1
This commit is contained in:
dependabot[bot]
2024-05-01 11:15:40 -07:00
committed by GitHub
parent 3cef845e01
commit 9d23fb93dd
4 changed files with 321 additions and 613 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ jobs:
### `private-key`
**Required:** GitHub App private key.
**Required:** GitHub App private key. Escaped newlines (`\\n`) will be automatically replaced with actual newlines.
### `owner`
+312 -610
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -13,10 +13,10 @@
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.1",
"@octokit/auth-app": "^6.0.4",
"@octokit/auth-app": "^7.0.0",
"@octokit/request": "^9.0.1",
"p-retry": "^6.2.0",
"undici": "^6.11.1"
"undici": "^6.15.0"
},
"devDependencies": {
"@sinonjs/fake-timers": "^11.2.2",
@@ -0,0 +1,6 @@
import { test, DEFAULT_ENV } from "./main.js";
// Verify `main` works correctly when `private-key` input has escaped newlines
await test(() => {
process.env['INPUT_PRIVATE-KEY'] = DEFAULT_ENV.PRIVATE_KEY.replace(/\n/g, '\\n')
});