Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Impersonation issue #166

Description

@nobe4

The current checks uses author name to ensure that the changes were made by the expected user.

for (const [, commit] of Object.entries(this.pullRequest.listCommits())) {
let commitAuthor = commit.author.login.toLowerCase();
if (commitAuthor !== privileged_requester_username) {
core.warning(
`Unexpected commit author found by ${commitAuthor}! Commits should be authored by ${privileged_requester_username} I will not proceed with the privileged reviewer process.`,
);
return false;

It is however really easy to make a commit with a different name, or email address.

git -c user.name='Linus Torvalds' -c user.email='torvalds@linux-foundation.org' commit -m "Wow, this is definitely legit."

This poses a serious risk of impersonation.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions