File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " execute-whitelist-action" ,
3- "version" : " 1.0.7 " ,
3+ "version" : " 1.0.8 " ,
44 "description" : " Action to whitelist executions" ,
55 "main" : " index.ts" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -31,22 +31,18 @@ async function run() {
3131
3232 if ( allowedUserIds . includes ( userId ) ) {
3333 core . notice ( `${ styles . green . open } User ${ styles . bold . open } ${ userId } ${ styles . bold . close } authorized this workflow run.${ styles . green . close } ` ) ;
34- core . summary . clear ( )
3534 core . summary . addHeading ( "Action Authorization" ) ;
3635 core . summary . addBreak ( )
3736 core . summary . addRaw ( "This workflow run is authorized by " ) ;
3837 core . summary . addLink ( `${ username } (${ userId } )` , `https://github.com/${ username } ` )
3938 core . summary . addRaw ( "." ) ;
40- core . summary . write ( )
4139 } else {
4240 core . notice ( `${ styles . green . open } User ${ styles . bold . open } ${ userId } ${ styles . bold . close } authorized this workflow run.${ styles . green . close } ` ) ;
43- core . summary . clear ( )
4441 core . summary . addHeading ( "Action Authorization Failure" ) ;
4542 core . summary . addBreak ( )
4643 core . summary . addRaw ( "This workflow run was executed by " ) ;
4744 core . summary . addLink ( `${ username } (${ userId } )` , `https://github.com/${ username } ` )
4845 core . summary . addRaw ( " and is unauthorized!" ) ;
49- core . summary . write ( )
5046 throw new Error ( `User ${ styles . bold . open } ${ userId } ${ styles . bold . close } is not authorized to run this workflow. Aborting` ) ;
5147 }
5248 } catch ( error : any ) {
You can’t perform that action at this time.
0 commit comments