Skip to content

Commit 5a2e1e7

Browse files
committed
fix: Rename input, from 'skip-token-revoke' to 'skip_token_revoke'
1 parent 02443a1 commit 5a2e1e7

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
> [!NOTE]
146146
> If `owner` is set and `repositories` is empty, access will be scoped to all repositories in the provided repository owner's installation. If `owner` and `repositories` are empty, access will be scoped to only the current repository.
147147

148-
### `skip-token-revoke`
148+
### `skip_token_revoke`
149149

150150
**Optional:** If truthy, the token will not be revoked when the current job is complete.
151151

@@ -162,7 +162,7 @@ The action creates an installation access token using [the `POST /app/installati
162162
1. The token is scoped to the current repository or `repositories` if set.
163163
2. The token inherits all the installation's permissions.
164164
3. The token is set as output `token` which can be used in subsequent steps.
165-
4. Unless the `skip-token-revoke` input is set to a truthy value, the token is revoked in the `post` step of the action, which means it cannot be passed to another job.
165+
4. Unless the `skip_token_revoke` input is set to a truthy value, the token is revoked in the `post` step of the action, which means it cannot be passed to another job.
166166
5. The token is masked, it cannot be logged accidentally.
167167

168168
> [!NOTE]

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ inputs:
1717
repositories:
1818
description: "Repositories to install the GitHub App on (defaults to current repository if owner is unset)"
1919
required: false
20-
skip-token-revoke:
20+
skip_token_revoke:
2121
description: "If truthy, the token will not be revoked when the current job is complete"
2222
required: false
2323
outputs:

dist/main.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10107,7 +10107,7 @@ var appId = import_core.default.getInput("app_id");
1010710107
var privateKey = import_core.default.getInput("private_key");
1010810108
var owner = import_core.default.getInput("owner");
1010910109
var repositories = import_core.default.getInput("repositories");
10110-
var skipTokenRevoke = Boolean(import_core.default.getInput("skip-token-revoke"));
10110+
var skipTokenRevoke = Boolean(import_core.default.getInput("skip_token_revoke"));
1011110111
main(
1011210112
appId,
1011310113
privateKey,

dist/post.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2973,7 +2973,7 @@ var import_core = __toESM(require_core(), 1);
29732973

29742974
// lib/post.js
29752975
async function post(core2, request2) {
2976-
const skipTokenRevoke = Boolean(core2.getInput("skip-token-revoke"));
2976+
const skipTokenRevoke = Boolean(core2.getInput("skip_token_revoke"));
29772977
if (skipTokenRevoke) {
29782978
core2.info("Token revocation was skipped");
29792979
return;

lib/post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @param {import("@octokit/request").request} request
66
*/
77
export async function post(core, request) {
8-
const skipTokenRevoke = Boolean(core.getInput("skip-token-revoke"));
8+
const skipTokenRevoke = Boolean(core.getInput("skip_token_revoke"));
99

1010
if (skipTokenRevoke) {
1111
core.info("Token revocation was skipped");

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const privateKey = core.getInput("private_key");
1919
const owner = core.getInput("owner");
2020
const repositories = core.getInput("repositories");
2121

22-
const skipTokenRevoke = Boolean(core.getInput("skip-token-revoke"));
22+
const skipTokenRevoke = Boolean(core.getInput("skip_token_revoke"));
2323

2424
main(
2525
appId,

tests/post-token-skipped.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ process.env.STATE_token = "secret123";
66

77
// inputs are set as environment variables with the prefix INPUT_
88
// https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs
9-
process.env["INPUT_SKIP-TOKEN-REVOKE"] = "true";
9+
process.env.INPUT_SKIP_TOKEN_REVOKE = "true";
1010

1111
const mockAgent = new MockAgent();
1212

0 commit comments

Comments
 (0)