Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a0de6af839 | |||
| 9d23fb93dd | |||
| 3cef845e01 | |||
| 7bfa3a4717 | |||
| 3c223c7336 |
@@ -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`
|
||||
|
||||
|
||||
Vendored
+20893
-11506
File diff suppressed because one or more lines are too long
Vendored
+18235
-1264
File diff suppressed because one or more lines are too long
Generated
+318
-616
File diff suppressed because it is too large
Load Diff
+4
-4
@@ -2,7 +2,7 @@
|
||||
"name": "create-github-app-token",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.9.2",
|
||||
"version": "1.10.0",
|
||||
"description": "GitHub Action for creating a GitHub App Installation Access Token",
|
||||
"scripts": {
|
||||
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0",
|
||||
@@ -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.10.2"
|
||||
"undici": "^6.15.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sinonjs/fake-timers": "^11.2.2",
|
||||
@@ -26,7 +26,7 @@
|
||||
"esbuild": "^0.20.2",
|
||||
"execa": "^8.0.1",
|
||||
"open-cli": "^8.0.0",
|
||||
"yaml": "^2.4.1"
|
||||
"yaml": "^2.4.2"
|
||||
},
|
||||
"release": {
|
||||
"branches": [
|
||||
|
||||
@@ -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')
|
||||
});
|
||||
Reference in New Issue
Block a user