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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: the Pull Request action now verifies signed commits #306

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

jenstroeger
Copy link
Owner

Somewhat related to issue commitizen-tools/commitizen#575, but using plain bash + git instead of commitizen.

@jenstroeger
Copy link
Owner Author

This blog and this gist show how to sign commits from an Action using the gh tool. We’d have to adjust for our release.yaml here, though:

- name: Create changelog and bump
run: cz bump --changelog --yes
- name: Push the release
run: |
git push
git push --tags

And here’s an interesting blog using a third-party tool Gitsign.

I think we’ll still have to do a little more digging for better approaches 🤔

@jenstroeger jenstroeger mentioned this pull request Sep 23, 2022
for sha in `git log --format=format:%H $PR_BASE_REF..$PR_HEAD_REF`
do
echo "Checking signature for commit $sha"
git verify-commit $sha
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will git verify-commit have access to the commit author's public key?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s part of our discussion in issue #332.

@jenstroeger
Copy link
Owner Author

@behnazh I think we can close this PR and continue the discussion in #332?

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.

None yet

2 participants