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
@@ -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')
});