Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible mismatch authorship of the commit #60

Open
damianooldoni opened this issue Jun 27, 2022 · 1 comment
Open

Possible mismatch authorship of the commit #60

damianooldoni opened this issue Jun 27, 2022 · 1 comment

Comments

@damianooldoni
Copy link

馃摑 Brief description

I am using this action in combination with your other action, action-pull-request, in a workflow called fetch-data,

The changes are committed to the new branch and a PR is created and labelled, that's fine.
I would like to perform both steps using a PAT (personal access token) created within my machine account and saved as a repo secret called WORKFLOWS.
The PR step is performed by the machine account as expected, see for example PR #48.
However you can see in the same PR that the commit 8614e69 created by the commit-push step is still performed under my name, @damianooldoni, not the machine account even if I use, as for the PR step, github_token: ${{ secrets.WORKFLOWS }} in the with section, see #L62.

Am I doing something wrong? Thanks for any help.

@ChristophShyper
Copy link
Member

Hi. GitHub PAT doesn't have user information stored with it. It still uses current git user.
In case of this action it's being set here https://github.com/devops-infra/action-commit-push/blob/master/entrypoint.sh#L29
I may try to add an additional input variable to set a different username, then it should work.

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

No branches or pull requests

2 participants