Closed gizmoguy closed 2 weeks ago
Hi @gizmoguy
Thank you for raising this issue and providing clear info on how to reproduce it! I'll take a look at how to fix this.
Released a fix for this in v7.0.4
/ v7
Thanks again!
Can confirm that I'm able to now sign commits that contain submodules, thanks for the quick fix!
Subject of the issue
If a pull request raised by this action contains a change to a git submodule when commit signing is enabled, an error occurs and the pull request is not created.
I think the error is caused here, where the action attempts to read the submodule directory to convert it to base64:
https://github.com/peter-evans/create-pull-request/blob/main/src/github-helper.ts#L265
Steps to reproduce
Here is a github action workflow which repros the issue:
You can see the output of a failed run of this workflow here:
https://github.com/gizmoguy/create-pull-request-signed-test/actions/runs/10912635430/job/30287661070
The error is this: