File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " execute-whitelist-action" ,
3- "version" : " 1.0.3" ,
4- "private" : " true" ,
3+ "version" : " 1.0.4" ,
54 "description" : " Action to whitelist executions" ,
65 "main" : " index.ts" ,
76 "scripts" : {
Original file line number Diff line number Diff line change @@ -10,14 +10,20 @@ async function run() {
1010
1111 const allowedUserIds = allowedIds . split ( ',' ) ;
1212
13+ core . warning ( `First user id: ${ allowedUserIds [ 0 ] } ` )
14+
1315 const octokit = github . getOctokit ( core . getInput ( 'token' ) ) ;
1416
1517 const username = github . context . actor ;
1618
19+ core . warning ( `Username: ${ username } ` )
20+
1721 const { data : user } = await octokit . rest . users . getByUsername ( {
1822 username : username ,
1923 } ) ;
2024
25+ core . warning ( `User id: ${ user . id } ` )
26+
2127 const userId = user . id . toString ( ) ;
2228
2329 if ( allowedUserIds . includes ( userId ) ) {
You can’t perform that action at this time.
0 commit comments