Skip to content

Commit 0a4ce57

Browse files
committed
debug
1 parent 6a3c0d4 commit 0a4ce57

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

package.json

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

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)