You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use the examples above using the `Git` command line, your commits will not be signed. If you want the commits from the GitHub App to be signed, we have to commit via the API by [creating a tree](https://docs.github.com/en/rest/git/trees?apiVersion=2022-11-28#create-a-tree), [creating a commit](https://docs.github.com/en/rest/git/commits?apiVersion=2022-11-28#create-a-commit), and [updating a reference](https://docs.github.com/en/rest/git/refs?apiVersion=2022-11-28#update-a-reference) to tie the tree to the commit.
148
+
149
+
For a detailed example, see this helpful Community Discussions post from [@loujr](https://github.com/loujr/):
150
+
151
+
- [How to Use Commit Signing with GitHub Apps](https://github.com/orgs/community/discussions/50055)
152
+
153
+
I also have an end-to-end example of using a GitHub App to sign a commit in GitHub Actions for reference:
154
+
155
+
- [commit-sign.yml - GitHub App commit signing example in Actions](https://github.com/joshjohanning-org/commit-sign-app/blob/main/.github/workflows/commit-sign.yml#L80-L153)
156
+
140
157
## Summary
141
158
142
-
In summary, if you are using a GitHub App to commit changes back to the repository, you will need to use the email address format of `<userID>+<app-name>[bot]@users.noreply.github.com`. This will allow the commit to be attributed to the GitHub App, and the author's icon to be the App's icon. 🤖
159
+
In summary, if you are using a GitHub App to commit changes back to the repository, you will need to use the email address format of `USERID`+`APP-NAME`[bot]@users.noreply.github.com. This will allow the commit to be attributed to the GitHub App, and the author's icon to be the App's icon (or the org's icon if there is no app icon!). 🤖
0 commit comments