Skip to content

Derive default Committer identity from Github token - #4451

Open
ngehrsitz wants to merge 1 commit into
peter-evans:mainfrom
ngehrsitz:derive-committer-from-token
Open

Derive default Committer identity from Github token#4451
ngehrsitz wants to merge 1 commit into
peter-evans:mainfrom
ngehrsitz:derive-committer-from-token

Conversation

@ngehrsitz

Copy link
Copy Markdown

Currently the Committer is hardcoded to github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> when it is unset. This is not only wrong for Github App tokens, but also for all GitHub Enterprise servers where the default identity does not exist.
This PR implements retrieval of the identity from the Github API based on the supplied token. I tested on GHES and ngehrsitz#3, ngehrsitz#4, ngehrsitz#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant