renovatebot / renovate

Home of the Renovate CLI: Cross-platform Dependency Automation by Mend.io
https://mend.io/renovate
GNU Affero General Public License v3.0
17.19k stars 2.25k forks source link

gpg: no valid OpenPGP data found #18502

Closed jokay closed 1 year ago

jokay commented 1 year ago

How are you running Renovate?

Self-hosted

If you're self-hosting Renovate, tell us what version of Renovate you run.

33.1.0

If you're self-hosting Renovate, select which platform you are using.

GitLab self-hosted

If you're self-hosting Renovate, tell us what version of the platform you run.

GitLab CE 15.5

Was this something which used to work for you, and then stopped?

It used to work, and then stopped

Describe the bug

It was working using renovate 32.241.10 (and GitLab 15.4).

Started to fail with 33.0.2 and auto-closed PRs due to this problem.

Relevant debug logs

Logs ``` WARN: gitPrivateKey: error importing (repository=demo/sample-repo, branch=renovate/docker-io-postgres-14-5-alpine) "err": { "name": "ExecError", "cmd": "/bin/sh -c gpg --import /tmp/git-private.key", "stderr": "gpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n", "stdout": "", "options": { "cwd": "/builds/x/renovate/renovate/repos/gitlab/demo/sample-repo", "encoding": "utf-8", "env": { "HOME": "/home/ubuntu", "PATH": "/home/ubuntu/bin:/home/ubuntu/.npm-global/bin:/home/ubuntu/bin:/home/ubuntu/.npm-global/bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LC_ALL": "C.UTF-8", "LANG": "C.UTF-8", "BUILDPACK_CACHE_DIR": "/builds/x/renovate/renovate/cache/containerbase", "CONTAINERBASE_CACHE_DIR": "/builds/x/renovate/renovate/cache/containerbase" }, "maxBuffer": 10485760, "timeout": 900000 }, "exitCode": 2, "message": "Command failed: gpg --import /tmp/git-private.key\ngpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n", "stack": "ExecError: Command failed: gpg --import /tmp/git-private.key\ngpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n\n at ChildProcess. (/usr/src/app/node_modules/renovate/lib/util/exec/common.ts:99:11)\n at ChildProcess.emit (node:events:525:35)\n at ChildProcess.emit (node:domain:489:12)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)" } WARN: Error updating branch (repository=demo/sample-repo, branch=renovate/docker-io-postgres-14-5-alpine) "err": { "message": "gpg-failed", "stack": "Error: gpg-failed\n at writePrivateKey (/usr/src/app/node_modules/renovate/lib/util/git/private-key.ts:49:11)\n at runMicrotasks ()\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at handleCommitAuth (/usr/src/app/node_modules/renovate/lib/util/git/index.ts:869:5)\n at prepareCommit (/usr/src/app/node_modules/renovate/lib/util/git/index.ts:897:3)\n at commitFiles (/usr/src/app/node_modules/renovate/lib/util/git/index.ts:1065:26)\n at processBranch (/usr/src/app/node_modules/renovate/lib/workers/repository/update/branch/index.ts:528:19)\n at writeUpdates (/usr/src/app/node_modules/renovate/lib/workers/repository/process/write.ts:139:17)\n at update (/usr/src/app/node_modules/renovate/lib/workers/repository/process/extract-update.ts:151:11)\n at Object.renovateRepository (/usr/src/app/node_modules/renovate/lib/workers/repository/index.ts:59:19)\n at attributes.repository (/usr/src/app/node_modules/renovate/lib/workers/global/index.ts:171:11)\n at Object.start (/usr/src/app/node_modules/renovate/lib/workers/global/index.ts:157:7)\n at /usr/src/app/node_modules/renovate/lib/renovate.ts:17:22" } ```

Have you created a minimal reproduction repository?

No reproduction repository

rarkins commented 1 year ago

Let's start by aborting if the gpg key can't be imported

viceice commented 1 year ago

I think there was no change on gpg handling in v33. the only change i can think of is

github-actions[bot] commented 1 year ago

Hi there,

Get your issue fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible.

Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this.

To get started, please read our guide on creating a minimal reproduction.

We may close the issue if you, or someone else, haven't created a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment.

Good luck,

The Renovate team

PhilipAbed commented 1 year ago

@jokay can you please confirm this is a regression?

you can do that by rolling back to the version that worked for you "32.241.10" and try to run again

we basically changed nothing that could've done that error in fact i was reading https://cumulusconstructor.com/when-gpg-import-doesnt-work/ and your issue seems like a common issue unrelated to renovate

mvitz commented 1 year ago

I upgrade from 32.241.10 to 33.2.0 (only change is the tag of the renovate/renovate docker image) and got the same errors.

After downgrading to 32.241.11 everything is working again. For me, it seems to be some kind of regression. Maybe just some dependency within the renovate/renovate image was updated, too?

Edit: Not sure if it helps, but below is my current K8s configuration for this bot:

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: renovate
data:
  config.json: |-
    {
      "platform": "gitlab",
      "endpoint": "https://example.org/api/v4",
      "autodiscover": true,
      "dryRun": null,
      "gitAuthor": "Renovate Bot <renovate-bot@example.org>",
        "onboardingConfig": {
          "$schema" : "https://docs.renovatebot.com/renovate-schema.json",
          "extends" : [
            "local>example/renovate//presets/default"
          ]
      }
    }
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: renovate
spec:
  schedule: '7,13,23,31,42,55 * * * *'
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - name: renovate
              image: renovate/renovate:33.2.0
              env:
                - name: RENOVATE_CONFIG_FILE
                  value: /opt/renovate-config/config.json
              envFrom:
                - secretRef:
                    name: renovate
              volumeMounts:
                - name: config-volume
                  mountPath: /opt/renovate-config
                  readOnly: true
          restartPolicy: Never
          volumes:
            - name: config-volume
              configMap:
                name: renovate
---
apiVersion: v1
kind: Secret
metadata:
  name: renovate
  namespace: renovate
  labels:
    app: renovate
  annotations:
    gitrepo: https://example.org/example/renovate
    owner: admin@example.org
type: Opaque
stringData:
  GITHUB_COM_TOKEN: 'some_github_token'
  RENOVATE_GIT_PRIVATE_KEY: '-----BEGIN PGP PRIVATE KEY BLOCK-----\n\nline1\nline2\nline3\nline4\nline5\nline6\nline7\n-----END PGP PRIVATE KEY BLOCK-----'
  RENOVATE_SECRETS: |-
    {
      "DOCKER_HUB_PASSWORD": "some_docker_hub_password",
      "DOCKER_HUB_USERNAME": "some_docker_hub_username",
      "NEXUS_PASSWORD": "some_nexus_password"
    }
  RENOVATE_TOKEN: 'some_renovate_token'
rarkins commented 1 year ago

I'm not able to reproduce this error. This is what I did:

Result:

DEBUG: Executing command (repository=renovate-tests/nvm20)
       "command": "gpg --import /var/folders/q_/8zp8yd4169nbwftw00ywxdlw0000gr/T/git-private.key"
DEBUG: exec completed (repository=renovate-tests/nvm20)
       "cmd": "gpg --import /var/folders/q_/8zp8yd4169nbwftw00ywxdlw0000gr/T/git-private.key",
       "durationMs": 31,
       "stdout": "",
       "stderr": "gpg: key 692BE958B9A018CC: public key \"Rhys Arkins <rhys@arkins.net>\" imported\ngpg: Total number processed: 1\ngpg:               imported: 1\n"
DEBUG: Private key import result (repository=renovate-tests/nvm20)
       "stdout": "",
       "stderr": "gpg: key 692BE958B9A018CC: public key \"Rhys Arkins <rhys@arkins.net>\" imported\ngpg: Total number processed: 1\ngpg:               imported: 1\n"

Please make sure to post DEBUG logs in case that helps

github-actions[bot] commented 1 year ago

Hi there,

We have found that there's a problem with the logs. Depending on which situation applies follow one, some or all of these instructions.

No logs at all

If you haven't posted any log yet, we need you to find and copy/paste the log into the issue template.

Finding logs on hosted app

Click me to read instructions If you use the Renovate app (GitHub): 1. Go to the affected PR, and search for "View repository job log here" 1. Click on the link to go to the "Mend Renovate Dashboard" and log in 1. You are now in the correct repository log overview screen 1. Copy/paste the correct log 1. Follow the steps in the **formatting your logs** section

Finding logs when self-hosting

Click me to read instructions If you're running self-hosted, run with `LOG_LEVEL=debug` in your environment variables and search for whatever dependency/branch/PR that is causing the problem.

Insufficient logs

Click me to read instructions If you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the **No logs at all** section.

Formatting your logs

Click me to read instructions Please put your logs in a `
` and `` element like this:
Click me to see logs ``` Copy/paste your logs here, between the starting and ending backticks ```
jokay commented 1 year ago

This is for renovate/renovate:34.1.0-slim which fails.

Logs ```sh DEBUG: Updated 1 package files (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: No updated lock files in branch (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: 1 file(s) to commit (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Preparing files for committing to branch renovate/docker.io-oxsecurity-megalinter-ci_light-6.x (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Setting CONTAINERBASE_CACHE_DIR to /builds/demo/renovate/renovate/cache/containerbase (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Executing command (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "command": "gpg --import /tmp/git-private.key" DEBUG: rawExec err (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "err": { "name": "ExecError", "cmd": "/bin/sh -c gpg --import /tmp/git-private.key", "stderr": "gpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n", "stdout": "", "options": { "cwd": "/builds/demo/renovate/renovate/repos/gitlab/demo/renovate", "encoding": "utf-8", "env": { "HOME": "/home/ubuntu", "PATH": "/home/ubuntu/bin:/home/ubuntu/.npm-global/bin:/home/ubuntu/bin:/home/ubuntu/.npm-global/bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LC_ALL": "C.UTF-8", "LANG": "C.UTF-8", "BUILDPACK_CACHE_DIR": "/builds/demo/renovate/renovate/cache/containerbase", "CONTAINERBASE_CACHE_DIR": "/builds/demo/renovate/renovate/cache/containerbase" }, "maxBuffer": 10485760, "timeout": 900000 }, "exitCode": 2, "message": "Command failed: gpg --import /tmp/git-private.key\ngpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n", "stack": "ExecError: Command failed: gpg --import /tmp/git-private.key\ngpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n\n at ChildProcess. (/usr/src/app/node_modules/renovate/lib/util/exec/common.ts:99:11)\n at ChildProcess.emit (node:events:525:35)\n at ChildProcess.emit (node:domain:489:12)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)" } WARN: gitPrivateKey: error importing (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "err": { "name": "ExecError", "cmd": "/bin/sh -c gpg --import /tmp/git-private.key", "stderr": "gpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n", "stdout": "", "options": { "cwd": "/builds/demo/renovate/renovate/repos/gitlab/demo/renovate", "encoding": "utf-8", "env": { "HOME": "/home/ubuntu", "PATH": "/home/ubuntu/bin:/home/ubuntu/.npm-global/bin:/home/ubuntu/bin:/home/ubuntu/.npm-global/bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LC_ALL": "C.UTF-8", "LANG": "C.UTF-8", "BUILDPACK_CACHE_DIR": "/builds/demo/renovate/renovate/cache/containerbase", "CONTAINERBASE_CACHE_DIR": "/builds/demo/renovate/renovate/cache/containerbase" }, "maxBuffer": 10485760, "timeout": 900000 }, "exitCode": 2, "message": "Command failed: gpg --import /tmp/git-private.key\ngpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n", "stack": "ExecError: Command failed: gpg --import /tmp/git-private.key\ngpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\n\n at ChildProcess. (/usr/src/app/node_modules/renovate/lib/util/exec/common.ts:99:11)\n at ChildProcess.emit (node:events:525:35)\n at ChildProcess.emit (node:domain:489:12)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)" } WARN: Error updating branch (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "err": { "message": "gpg-failed", "stack": "Error: gpg-failed\n at writePrivateKey (/usr/src/app/node_modules/renovate/lib/util/git/private-key.ts:49:11)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at handleCommitAuth (/usr/src/app/node_modules/renovate/lib/util/git/index.ts:869:5)\n at prepareCommit (/usr/src/app/node_modules/renovate/lib/util/git/index.ts:897:3)\n at commitFiles (/usr/src/app/node_modules/renovate/lib/util/git/index.ts:1065:26)\n at processBranch (/usr/src/app/node_modules/renovate/lib/workers/repository/update/branch/index.ts:528:19)\n at writeUpdates (/usr/src/app/node_modules/renovate/lib/workers/repository/process/write.ts:139:17)\n at update (/usr/src/app/node_modules/renovate/lib/workers/repository/process/extract-update.ts:151:11)\n at Object.renovateRepository (/usr/src/app/node_modules/renovate/lib/workers/repository/index.ts:61:19)\n at attributes.repository (/usr/src/app/node_modules/renovate/lib/workers/global/index.ts:173:11)\n at Object.start (/usr/src/app/node_modules/renovate/lib/workers/global/index.ts:158:7)\n at /usr/src/app/node_modules/renovate/lib/renovate.ts:17:22" } DEBUG: Closing Dependency Dashboard (repository=demo/renovate) DEBUG: ensureIssueClosing() (repository=demo/renovate) DEBUG: Removing any stale branches (repository=demo/renovate) DEBUG: config.repoIsOnboarded=true (repository=demo/renovate) DEBUG: No renovate branches found (repository=demo/renovate) ```
jokay commented 1 year ago

The used OpenPGP key is ECC (not RSA), not sure if this changes anything? 🤷🏼‍♂️

image

jokay commented 1 year ago

This is for renovate/renovate:32.241.10-slim which works.

Logs ```sh DEBUG: Updated 1 package files (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: No updated lock files in branch (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: 1 file(s) to commit (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Preparing files for committing to branch renovate/docker.io-oxsecurity-megalinter-ci_light-6.x (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Setting CONTAINERBASE_CACHE_DIR to /builds/demo/renovate/renovate/cache/containerbase (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Executing command (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "command": "gpg --import /tmp/git-private.key" DEBUG: exec completed (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "cmd": "gpg --import /tmp/git-private.key", "durationMs": 323, "stdout": "", "stderr": "gpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: /home/ubuntu/.gnupg/trustdb.gpg: trustdb created\ngpg: key 63F9***: public key \" \" imported\ngpg: key 63F9***: secret key imported\ngpg: Total number processed: 1\ngpg: imported: 1\ngpg: secret keys read: 1\ngpg: secret keys imported: 1\n" DEBUG: Private key import result (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "stdout": "", "stderr": "gpg: directory '/home/ubuntu/.gnupg' created\ngpg: keybox '/home/ubuntu/.gnupg/pubring.kbx' created\ngpg: /home/ubuntu/.gnupg/trustdb.gpg: trustdb created\ngpg: key 63F9***: public key \" \" imported\ngpg: key 63F9***: secret key imported\ngpg: Total number processed: 1\ngpg: imported: 1\ngpg: secret keys read: 1\ngpg: secret keys imported: 1\n" DEBUG: gitPrivateKey: imported (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: gitPrivateKey: configuring commit signing (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Setting CONTAINERBASE_CACHE_DIR to /builds/demo/renovate/renovate/cache/containerbase (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Executing command (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "command": "git config user.signingkey 63F9***" DEBUG: exec completed (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "cmd": "git config user.signingkey 63F9***", "durationMs": 15, "stdout": "", "stderr": "" DEBUG: Setting CONTAINERBASE_CACHE_DIR to /builds/demo/renovate/renovate/cache/containerbase (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Executing command (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "command": "git config commit.gpgsign true" DEBUG: exec completed (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "cmd": "git config commit.gpgsign true", "durationMs": 14, "stdout": "", "stderr": "" DEBUG: Setting git author name (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "gitAuthorName": "demo" DEBUG: Setting git author email (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "gitAuthorEmail": "demo@***.**" DEBUG: git commit (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "deletedFiles": [], "ignoredFiles": [], "result": { "author": null, "branch": "renovate/docker.io-oxsecurity-megalinter-ci_light-6.x", "commit": "4712ab32db2cda7da5f89cd653177a3611d30bc2", "root": false, "summary": {"changes": 1, "insertions": 1, "deletions": 1} } DEBUG: Pushing branch renovate/docker.io-oxsecurity-megalinter-ci_light-6.x (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: git push (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "result": { "pushed": [ { "deleted": false, "tag": false, "branch": true, "new": true, "alreadyUpdated": false, "local": "refs/heads/renovate/docker.io-oxsecurity-megalinter-ci_light-6.x", "remote": "refs/heads/renovate/docker.io-oxsecurity-megalinter-ci_light-6.x" } ], "ref": { "local": "refs/remotes/origin/renovate/docker.io-oxsecurity-megalinter-ci_light-6.x" }, "remoteMessages": { "all": [ "To create a merge request for renovate/docker.io-oxsecurity-megalinter-ci_light-6.x, visit:", "https://gitlab.demo.com/demo/renovate/-/merge_requests/new?merge_request%5Bsource_branch%5D=renovate%2Fdocker.io-oxsecurity-megalinter-ci_light-6.x" ], "pullRequestUrl": "https://gitlab.demo.com/demo/renovate/-/merge_requests/new?merge_request%5Bsource_branch%5D=renovate%2Fdocker.io-oxsecurity-megalinter-ci_light-6.x" } } INFO: Branch created (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "commitSha": "4712ab32db2cda7da5f89cd653177a3611d30bc2" DEBUG: Ensuring PR (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: There are 0 errors and 0 warnings (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: getBranchPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: findPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x, undefined, open) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Fetching changelog: https://github.com/oxsecurity/megalinter (v6.12.0 -> v6.13.0) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: No concurrency limits (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "host": "api.github.com" DEBUG: resolveBranchStatus(branchName=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x, ignoreTests=false) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: getBranchStatus(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Got res with 0 results (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: getBranchPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: findPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x, undefined, open) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Branch status yellow (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Creating PR (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "prTitle": "Update docker.io/oxsecurity/megalinter-ci_light Docker tag to v6.13.0" DEBUG: Creating Merge Request: Update docker.io/oxsecurity/megalinter-ci_light Docker tag to v6.13.0 (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) INFO: PR created (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) "pr": 88, "prTitle": "Update docker.io/oxsecurity/megalinter-ci_light Docker tag to v6.13.0" DEBUG: resolveBranchStatus(branchName=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x, ignoreTests=false) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: getBranchStatus(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Got res with 0 results (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: getBranchPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: findPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x, undefined, open) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Branch status yellow (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Skipping assignees and reviewers as automerge=true (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Created Merge Request #88 (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: PR is configured for automerge (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Checking schedule(at any time, null) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: No schedule defined (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: resolveBranchStatus(branchName=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x, ignoreTests=false) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: getBranchStatus(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Got res with 0 results (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: getBranchPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: findPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x, undefined, open) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: Branch status yellow (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: PR is not ready for merge (branch status is yellow) (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: setBranchCommit() (repository=demo/renovate, branch=renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) DEBUG: getBranchPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x) (repository=demo/renovate) DEBUG: findPr(renovate/docker.io-oxsecurity-megalinter-ci_light-6.x, undefined, open) (repository=demo/renovate) DEBUG: branch.isBehindBase(): using cached result "false" (repository=demo/renovate) DEBUG: Closing Dependency Dashboard (repository=demo/renovate) DEBUG: ensureIssueClosing() (repository=demo/renovate) DEBUG: Removing any stale branches (repository=demo/renovate) DEBUG: config.repoIsOnboarded=true (repository=demo/renovate) ```
rarkins commented 1 year ago

From 32.241.10:

$ gpg --version
gpg (GnuPG) 2.2.19
libgcrypt 1.8.5
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/ubuntu/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

Same from 34.1.0:

$ gpg --version
gpg (GnuPG) 2.2.19
libgcrypt 1.8.5
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/ubuntu/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

So doesn't seem to be caused by any difference to gpg

rarkins commented 1 year ago

I have been able to reproduce. The key needed to be supplied in env with \n. This \n was not being coerced into real newlines. Fix is in #18563

jokay commented 1 year ago

Thx a lot for your effort 💪🏼

rarkins commented 1 year ago

Thanks for reporting, and sorry for the disruption it caused

renovate-release commented 1 year ago

:tada: This issue has been resolved in version 34.1.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: