Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GPG Sign in GitHub Actions #616

Unanswered
adam-grant-hendry asked this question in Q&A
Discussion options

I've submitted PR #51 to commitizen-tools/commitizen-action, but cannot seem to get GPG signing to work.

I consistently hit the error:

2nd git.commit error: "error: gpg failed to sign the data fatal: failed to write commit object"

which is coming from commands/bump.py:

if c.return_code != 0:
raise BumpCommitFailedError(f'2nd git.commit error: "{c.err.strip()}"')

If I'm reading the source correctly, it looks like bump supports signing tags, but not commits. Is this right?

@woile @Lee-W Can you please confirm?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

@woile @Lee-W I see what's happening. commitizen-action runs in a separate Docker container, whereas the action crazy-max/ghaction-import-gpg that I use to set up GPG runs in the local runner.

Hence, crazy-max/ghaction-import-gpg sets up the local runner, but commitizen-action builds and runs a container, so none of the configuration from crazy-max/ghaction-import-gpg is there.

For now, it's probably simplest for me to copy-paste the action entrypoint.sh script and run that directly in my workflow.

Not sure how to run a GitHub Action within a workflow step that builds and launches a Docker container like commitizen-action does...?

You must be logged in to vote
1 reply
Comment options

I notice you opened an issue on commitizen-action. Thus, I'll close this one and that's discuss there. I'm not that familiar with github-action development as of now. But will get back to you if i have some time to dig into it.

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

AltStyle によって変換されたページ (->オリジナル) /