Commit signing in actions

I have a workflow that’s committing and pushing changes back to the repo but the commits aren’t showing as signed. Apps and bots are supposed to have signed commits now, and I’m using the actions account to make my commit. Should this be working, and if so what’s the correct way to set it up?

I’m running this before committing and pushing:

git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
1 Like

Yeah, you can use the bot to sign in. I have tested and tried, it can work as expectd.

Note: before using the option  –local in git config , you must clone/checkout the repository to local at first. You also can use the option  –global in git config.  

More details about git config, you can reference here: https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address

1 Like

@brightran you misunderstood the question.
@xt0rted is asking how to create signed commit with GitHub Actions.
Something that we are waiting for from the beginning Support Signed Commits by actions@github.com · Issue #667 · actions/runner · GitHub
@xt0rted the link above contains the easiest workaround for this problem.