Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Oct 22, 2024
1 parent 46144f2 commit d7727e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ const getCommentId = async (octokit, oktokitParams, issueNumber, commentHeader)
})
let actionUser = 'github-action[bot]'
try {
actionUser = await octokit.rest.users.getAuthenticated()
const authenticatedUser = await octokit.rest.users.getAuthenticated()
console.log(authenticatedUser)
actionUser = authenticatedUser.login
} catch (e) {
// ignore - this fails when running with the default github token for a
// workflow, but if using a github app token or a personal access token,
// then it's necessary.
console.error(e)
}
debug('Action user: ' + actionUser)

Expand Down

0 comments on commit d7727e9

Please sign in to comment.