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 @@ -29258,23 +29258,19 @@ async function run() {
2925829258 const userId = user.id.toString();
2925929259 if (allowedUserIds.includes(userId)) {
2926029260 core.notice(`${ansi_styles_1.default.green.open}User ${ansi_styles_1.default.bold.open}${userId}${ansi_styles_1.default.bold.close} authorized this workflow run.${ansi_styles_1.default.green.close}`);
29261- core.summary.clear();
2926229261 core.summary.addHeading("Action Authorization");
2926329262 core.summary.addBreak();
2926429263 core.summary.addRaw("This workflow run is authorized by ");
2926529264 core.summary.addLink(`${username} (${userId})`, `https://github.com/${username}`);
2926629265 core.summary.addRaw(".");
29267- core.summary.write();
2926829266 }
2926929267 else {
2927029268 core.notice(`${ansi_styles_1.default.green.open}User ${ansi_styles_1.default.bold.open}${userId}${ansi_styles_1.default.bold.close} authorized this workflow run.${ansi_styles_1.default.green.close}`);
29271- core.summary.clear();
2927229269 core.summary.addHeading("Action Authorization Failure");
2927329270 core.summary.addBreak();
2927429271 core.summary.addRaw("This workflow run was executed by ");
2927529272 core.summary.addLink(`${username} (${userId})`, `https://github.com/${username}`);
2927629273 core.summary.addRaw(" and is unauthorized!");
29277- core.summary.write();
2927829274 throw new Error(`User ${ansi_styles_1.default.bold.open}${userId}${ansi_styles_1.default.bold.close} is not authorized to run this workflow. Aborting`);
2927929275 }
2928029276 }
Original file line number Diff line number Diff line change 11{
22 "name" : " execute-whitelist-action" ,
3- "version" : " 1.0.8 " ,
3+ "version" : " 1.0.9 " ,
44 "description" : " Action to whitelist executions" ,
55 "main" : " index.ts" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments