Title: gpg: signing failed: No secret key · Issue #72 · commitizen-tools/commitizen-action · GitHub
Open Graph Title: gpg: signing failed: No secret key · Issue #72 · commitizen-tools/commitizen-action
X Title: gpg: signing failed: No secret key · Issue #72 · commitizen-tools/commitizen-action
Description: 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 Version on: push: branches: - main jobs: buil...
Open Graph Description: 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 Versi...
X Description: 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: Bu...
Opengraph URL: https://github.com/commitizen-tools/commitizen-action/issues/72
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gpg: signing failed: No secret key","articleBody":"I've followed the steps using crazy-max/ghaction-import-gpg as the documentation recommended.\r\n\r\nHowever I'm having no luck getting the commitizen-action to sign the commits/tags etc.\r\n\r\n```yml\r\nname: Bump Version\r\n\r\non:\r\n push:\r\n branches:\r\n - main\r\n\r\njobs:\r\n build:\r\n if: \"!startsWith(github.event.head_commit.message, 'bump:')\"\r\n runs-on: ubuntu-latest\r\n steps:\r\n - uses: actions/checkout@v3\r\n with:\r\n fetch-depth: 0\r\n token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}\r\n - name: Import GPG key\r\n id: import_gpg\r\n uses: crazy-max/ghaction-import-gpg@v5\r\n with:\r\n gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}\r\n passphrase: ${{ secrets.GPG_PASSPHRASE }}\r\n trust_level: 5\r\n git_user_signingkey: true\r\n git_commit_gpgsign: true\r\n git_tag_gpgsign: true\r\n git_config_global: true\r\n - name: List keys\r\n run: |\r\n gpg --list-keys\r\n echo ${{ steps.import_gpg.outputs.fingerprint }}\r\n echo ${{ steps.import_gpg.outputs.keyid }}\r\n git config --global --list\r\n - name: Create bump and changelog\r\n uses: commitizen-tools/commitizen-action@master\r\n with:\r\n github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}\r\n git_name: ${{ steps.import_gpg.outputs.name }}\r\n git_email: ${{ steps.import_gpg.outputs.email }}\r\n changelog_increment_filename: VERSION.md\r\n gpg_sign: false\r\n debug: true\r\n - name: Output REVISION\r\n run: |\r\n echo ${{ env.REVISION }}\r\n - name: Release\r\n uses: softprops/action-gh-release@v1\r\n with:\r\n body_path: \"VERSION.md\"\r\n tag_name: \"v${{ env.REVISION }}\"\r\n env:\r\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\r\n```\r\n\r\n```log\r\nCommitizen version: 3.5.2\r\ncz --debug --no-raise 21 bump --yes --gpg-sign --changelog --check-consistency\r\nbump: version 0.0.2 → 0.0.3\r\ntag to create: v0.0.3\r\nincrement detected: PATCH\r\n\r\n[main 6aee056] bump: version 0.0.2 → 0.0.3\r\n 1 file changed, 13 insertions(+)\r\n\r\nerror: gpg failed to sign the data:\r\ngpg: directory '/github/home/.gnupg' created\r\ngpg: skipped \"brazarb \u003c11[102](https://github.com/org/ClickUpTest/actions/runs/*******/jobs/*********#step:6:103)******+******@users.noreply.github.com\u003e\": No secret key\r\n[GNUPG:] INV_SGNR 9 author \u003c*******+******@users.noreply.github.com\u003e\r\n[GNUPG:] FAILURE sign 17\r\ngpg: signing failed: No secret key\r\n\r\nerror: unable to sign the tag\r\n\r\nTraceback (most recent call last):\r\n File \"/usr/local/bin/cz\", line 8, in \u003cmodule\u003e\r\n sys.exit(main())\r\n File \"/usr/local/lib/python3.8/site-packages/commitizen/cli.py\", line 463, in main\r\n args.func(conf, vars(args))()\r\n File \"/usr/local/lib/python3.8/site-packages/commitizen/commands/bump.py\", line 351, in __call__\r\n raise BumpTagFailedError(c.err)\r\ncommitizen.exceptions.BumpTagFailedError: error: gpg failed to sign the data:\r\ngpg: directory '/github/home/.gnupg' created\r\ngpg: skipped \"author \u003c******+******@users.noreply.github.com\u003e\": No secret key\r\n[GNUPG:] INV_SGNR 9 author \u003c******+******@users.noreply.github.com\u003e\r\n[GNUPG:] FAILURE sign 17\r\ngpg: signing failed: No secret key\r\n\r\nerror: unable to sign the tag\r\n```\r\n\r\nChecking `git config --global --list` matches the name, email and signing key.","author":{"url":"https://github.com/brazarb","@type":"Person","name":"brazarb"},"datePublished":"2023-06-27T23:32:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/72/commitizen-action/issues/72"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6338c766-58dd-b2fc-6ad3-3baaad33c610 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8630:2586AA:6CDD6D8:8CA26E7:6976AC3A |
| html-safe-nonce | 0c94043299851dcf3bc51bff1d8f52082d18316ddcfad7c1ed8c3fcd7f87b0da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjMwOjI1ODZBQTo2Q0RENkQ4OjhDQTI2RTc6Njk3NkFDM0EiLCJ2aXNpdG9yX2lkIjoiODkwODgzNDMxNzc2OTU1MDkwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 50f41d51446ba541285cdeb3639f59da12de2a30be2d0b72cf95613a7e458684 |
| hovercard-subject-tag | issue:1777900218 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen-action/72/issue_layout |
| twitter:image | https://opengraph.githubassets.com/afe6866a4373455adc9452d511d2abb23b96b9dd7b2c029c9f3b04af798bcbff/commitizen-tools/commitizen-action/issues/72 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/afe6866a4373455adc9452d511d2abb23b96b9dd7b2c029c9f3b04af798bcbff/commitizen-tools/commitizen-action/issues/72 |
| og:image:alt | 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 Versi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brazarb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen-tools/commitizen-action git https://github.com/commitizen-tools/commitizen-action.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 287308634 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen-action |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 287308634 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen-action |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width