lndk-org / lndk

MIT License
76 stars 19 forks source link

Bug: codecov throws an error when PRs are merged. #125

Closed orbitalturtle closed 1 month ago

orbitalturtle commented 1 month ago

Describe the bug

Codecov runs successfully on new PRs. But codecov runs unsuccessfully when we merge the same PRs:

2s
Run codecov/codecov-action@v4
evenName: push
evenName: push
evenName: push
==> linux OS detected
https://cli.codecov.io/latest/linux/codecov.SHA256SUM
gpg: directory '/home/runner/.gnupg' created
gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
gpg: /home/runner/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB28AED779869: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: Signature made Wed May  8 17:49:27 2024 UTC
gpg:                using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpg: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 2703 4E7F DB85 0E0B BC2C  62FF 806B B28A ED77 9869
==> Uploader SHASUM verified (209d13481be406d6a2aa9519fa61c84883e3213308b5628c43a5e94cae75b8e6  codecov)
==> Running version latest
==> Running version v0.6.0
==> Running git config --global --add safe.directory /home/runner/work/lndk/lndk
/usr/bin/git config --global --add safe.directory /home/runner/work/lndk/lndk
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit --git-service github -Z
info - 2024-06-19 03:07:17,470 -- ci service found: github-actions
warning - 2024-06-19 03:07:17,478 -- No config file could be found. Ignoring config.
info - 2024-06-19 03:07:17,583 -- Process Commit creating complete
error - 2024-06-19 03:07:17,584 -- Commit creating failed: {"detail":"You do not have permission to perform this action."}
Error: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
orbitalturtle commented 1 month ago

Ah regenerating the codecov token seemed to do the trick