I've followed the steps using crazy-max/ghaction-import-gpg as the documentation recommended.
However I'm having no luck getting the commitizen-action to sign the commits/tags etc.
name: Bump Versionon:
push:
branches:
- mainjobs:
build:
if: "!startsWith(github.event.head_commit.message, 'bump:')"runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v3with:
fetch-depth: 0token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Import GPG keyid: import_gpguses: crazy-max/ghaction-import-gpg@v5with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}passphrase: ${{ secrets.GPG_PASSPHRASE }}trust_level: 5git_user_signingkey: truegit_commit_gpgsign: truegit_tag_gpgsign: truegit_config_global: true
- name: List keysrun: | gpg --list-keys echo ${{ steps.import_gpg.outputs.fingerprint }} echo ${{ steps.import_gpg.outputs.keyid }} git config --global --list - name: Create bump and changeloguses: commitizen-tools/commitizen-action@masterwith:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}git_name: ${{ steps.import_gpg.outputs.name }}git_email: ${{ steps.import_gpg.outputs.email }}changelog_increment_filename: VERSION.mdgpg_sign: falsedebug: true
- name: Output REVISIONrun: | echo ${{ env.REVISION }} - name: Releaseuses: softprops/action-gh-release@v1with:
body_path: "VERSION.md"tag_name: "v${{ env.REVISION }}"env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}Commitizen version: 3.5.2
cz --debug --no-raise 21 bump --yes --gpg-sign --changelog --check-consistency
bump: version 0.0.2 → 0.0.3
tag to create: v0.0.3
increment detected: PATCH
[main 6aee056] bump: version 0.0.2 → 0.0.3
1 file changed, 13 insertions(+)
error: gpg failed to sign the data:
gpg: directory '/github/home/.gnupg' created
gpg: skipped "brazarb <11[102](https://github.com/org/ClickUpTest/actions/runs/*******/jobs/*********#step:6:103)******+******@users.noreply.github.com>": No secret key
[GNUPG:] INV_SGNR 9 author <*******+******@users.noreply.github.com>
[GNUPG:] FAILURE sign 17
gpg: signing failed: No secret key
error: unable to sign the tag
Traceback (most recent call last):
File "/usr/local/bin/cz", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/commitizen/cli.py", line 463, in main
args.func(conf, vars(args))()
File "/usr/local/lib/python3.8/site-packages/commitizen/commands/bump.py", line 351, in __call__
raise BumpTagFailedError(c.err)
commitizen.exceptions.BumpTagFailedError: error: gpg failed to sign the data:
gpg: directory '/github/home/.gnupg' created
gpg: skipped "author <******+******@users.noreply.github.com>": No secret key
[GNUPG:] INV_SGNR 9 author <******+******@users.noreply.github.com>
[GNUPG:] FAILURE sign 17
gpg: signing failed: No secret key
error: unable to sign the tag
Checking git config --global --list matches the name, email and signing key.
I've followed the steps using crazy-max/ghaction-import-gpg as the documentation recommended.
However I'm having no luck getting the commitizen-action to sign the commits/tags etc.
Checking
git config --global --listmatches the name, email and signing key.