Skip to content

Commit b57fa59

Browse files
committed
Fix release
1 parent 7df233d commit b57fa59

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

dist/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

0 commit comments

Comments
 (0)