File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ name: 'codespaces-board'
2
2
description : ' Action to aggregate GitHub Project Cards into a single issue'
3
3
author : ' Oleg Solomka @legomushroom'
4
4
inputs :
5
- token :
5
+ readToken :
6
6
required : true
7
- description : ' GitHub token for API requests'
7
+ description : ' GitHub token for read API requests'
8
+ writeToken :
9
+ required : true
10
+ description : ' GitHub token for write API requests'
8
11
config :
9
12
required : true
10
13
description : ' Path to the config'
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { getConfigs, validateConfig } from './config';
14
14
import { IConfig } from './interfaces/IConfig' ;
15
15
16
16
const TOKEN_READ_NAME = 'REPO_GITHUB_READ_PAT' ;
17
- const TOKEN_WRITE_NAME = 'REPO_GITHUB_READ_PAT ' ;
17
+ const TOKEN_WRITE_NAME = 'REPO_GITHUB_WRITE_PAT ' ;
18
18
const CONFIG_PATH = 'CONFIG_PATH' ;
19
19
20
20
// const overwriteBoardIssue = async (
@@ -189,7 +189,7 @@ async function run(): Promise<void> {
189
189
try {
190
190
const token = core . getInput ( 'token' ) ;
191
191
const readToken = env ( TOKEN_READ_NAME ) ?? core . getInput ( 'readToken' ) ?? token ;
192
- const writeToken = env ( TOKEN_READ_NAME ) ?? core . getInput ( 'writeToken' ) ?? token ;
192
+ const writeToken = env ( TOKEN_WRITE_NAME ) ?? core . getInput ( 'writeToken' ) ?? token ;
193
193
194
194
if ( ! readToken ) {
195
195
throw new AuthorizationError ( 'No read token found.' ) ;
You can’t perform that action at this time.
0 commit comments