File tree Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ export const DEFAULT_ENV = {
8
8
// inputs are set as environment variables with the prefix INPUT_
9
9
// https://docs.github.com/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs
10
10
"INPUT_GITHUB-API-URL" : "https://api.github.com" ,
11
+ "INPUT_SKIP-TOKEN-REVOKE" : "false" ,
12
+ "INPUT_SKIP_TOKEN_REVOKE" : "false" ,
11
13
"INPUT_APP-ID" : "123456" ,
12
14
// This key is invalidated. It’s from https://github.com/octokit/auth-app.js/issues/465#issuecomment-1564998327.
13
15
"INPUT_PRIVATE-KEY" : `-----BEGIN RSA PRIVATE KEY-----
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ process.env.STATE_token = "secret123";
7
7
// inputs are set as environment variables with the prefix INPUT_
8
8
// https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs
9
9
process . env [ "INPUT_GITHUB-API-URL" ] = "https://api.github.com" ;
10
+ process . env [ "INPUT_SKIP-TOKEN-REVOKE" ] = "false" ;
11
+ process . env [ "INPUT_SKIP_TOKEN_REVOKE" ] = "false" ;
10
12
11
13
// 1 hour in the future, not expired
12
14
process . env . STATE_expiresAt = new Date (
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ process.env.STATE_token = "secret123";
7
7
// 1 hour in the past, expired
8
8
process . env . STATE_expiresAt = new Date ( Date . now ( ) - 1000 * 60 * 60 ) . toISOString ( ) ;
9
9
10
+ // inputs are set as environment variables with the prefix INPUT_
11
+ // https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs
12
+ process . env [ "INPUT_SKIP-TOKEN-REVOKE" ] = "false" ;
13
+ process . env [ "INPUT_SKIP_TOKEN_REVOKE" ] = "false" ;
14
+
10
15
const mockAgent = new MockAgent ( ) ;
11
16
12
17
setGlobalDispatcher ( mockAgent ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ process.env.STATE_token = "secret123";
7
7
// inputs are set as environment variables with the prefix INPUT_
8
8
// https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs
9
9
process . env [ "INPUT_GITHUB-API-URL" ] = "https://api.github.com" ;
10
+ process . env [ "INPUT_SKIP-TOKEN-REVOKE" ] = "false" ;
11
+ process . env [ "INPUT_SKIP_TOKEN_REVOKE" ] = "false" ;
10
12
11
13
// 1 hour in the future, not expired
12
14
process . env . STATE_expiresAt = new Date ( Date . now ( ) + 1000 * 60 * 60 ) . toISOString ( ) ;
Original file line number Diff line number Diff line change 2
2
// https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#sending-values-to-the-pre-and-post-actions
3
3
delete process . env . STATE_token ;
4
4
5
+ // inputs are set as environment variables with the prefix INPUT_
6
+ // https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs
7
+ process . env [ "INPUT_SKIP-TOKEN-REVOKE" ] = "false" ;
8
+ process . env [ "INPUT_SKIP_TOKEN_REVOKE" ] = "false" ;
9
+
5
10
await import ( "../post.js" ) ;
You can’t perform that action at this time.
0 commit comments