Repository navigation
Closed
Labels
Description
I'm using a token, but I'm getting this error:
evenName: workflow_run
evenName: workflow_run
evenName: workflow_run
==> linux OS detected
https://cli.codecov.io/latest/linux/codecov.SHA256SUM
Received SHA256SUM 8777a6078323948d31cbd81b7776254d1fbfd6888c33dc899b1447b208d717f6 codecov
Received SHA256SUM signature -----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEJwNOf9uFDgu8LGL/gGuyiu13mGkFAmaAJWsACgkQgGuyiu13
mGkQ3A//dLrJ/XHpPp2thv4B5t4Vh2uREsyAYcxiZsp756tQkt+ITwWbyAGRBcrq
Pi9t/eLpo/AcNQhzVeApLMoBr7oe0Ysk98TAv7IaEUhpI8ewjCnYXLK7zn+dSkf7
/igUw+LPNS9a0eHnWuZAheVbAsBpHM5fDzp7/FiOzDsSwLCboyqZLb0VSkOY/UOo
2kPXTrf+ousvHeGeMbKlZhyVv6FHXP9BSwij+cwnBCFuJL0lRrPHK84AEpQ5a1hZ
siQ1jOzh3zecsCEH897EARf2006q4EVe6tLs6HyS0jCApek6nqnqtu2mJ7qNaP8e
snY6t65I9uYkyLWCHSm/90ukilIDOvuZQk+ywDDKPMh2MHQKw8CfD7hgllTDDQOj
1zFMvMIOaJx7XoxPPqCfm/ZllT5PlzwL+F2jIczFiMMTFa1xNKTfdnIfL5jZalgr
VElcqr/+RgYMVtIXhKhOXww7AHfzpSQzehiP/RYeDMM5/bxn5ATMo8Zq/MNL99V0
CdWBNJWALkruSev30uf4gX3hLqNDT5mt0oMQapRZAUIQFswHil3+gb46SojIq9lM
opyItwBNiI5O5sJ8UzZCn7RLfUXDnEWR3O2YUb2elZk9m24W3CW2gTtjShx5mrSb
bYleDtjW9Q2caH0Nv3toX3s+C5yDuHg7RBKHzzXDXA4LrFkGnec=
=EZuw
-----END PGP SIGNATURE-----
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) <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: Signature made Sat Jun 29 15:16:59 2024 UTC
gpg: using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpg: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <[email protected]>" [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 (8777a6078323948d31cbd81b7776254d1fbfd6888c33dc899b1447b208d717f6 codecov)
==> Running version latest
==> Running version v0.7.2
==> Running git config --global --add safe.directory /home/runner/work/pull_request_target/pull_request_target
/usr/bin/git config --global --add safe.directory /home/runner/work/pull_request_target/pull_request_target
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov -v create-commit'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov -v create-commit --git-service github -C 244db3b3de5d01bca44a92c3ffb45e067e1d3ba9 --pr 16 -Z
info - 2024-07-[12](https://github.com/josecelano-test/pull_request_target/actions/runs/9907290283/job/27370651458#step:5:13) 11:42:10,908 -- ci service found: github-actions
debug - 2024-07-12 11:42:10,911 -- versioning system found: <class 'codecov_cli.helpers.versioning_systems.GitVersioningSystem'>
debug - 2024-07-12 11:42:10,9[14](https://github.com/josecelano-test/pull_request_target/actions/runs/9907290283/job/27370651458#step:5:15) -- versioning system found: <class 'codecov_cli.helpers.versioning_systems.GitVersioningSystem'>
warning - 2024-07-12 11:42:10,9[16](https://github.com/josecelano-test/pull_request_target/actions/runs/9907290283/job/27370651458#step:5:17) -- No config file could be found. Ignoring config.
debug - 2024-07-12 11:42:10,917 -- No codecov_yaml found
debug - 2024-07-12 11:42:10,9[17](https://github.com/josecelano-test/pull_request_target/actions/runs/9907290283/job/27370651458#step:5:18) -- Starting create commit process --- {"commit_sha": "244db3b3de5d01bca44a92c3ffb45e067e1d3ba9", "parent_sha": null, "pr": "16", "branch": "develop", "slug": "josecelano-test/pull_request_target", "token": "e******************", "service": "github", "enterprise_url": null}
info - [20](https://github.com/josecelano-test/pull_request_target/actions/runs/9907290283/job/27370651458#step:5:21)24-07-12 11:42:11,096 -- Process Commit creating complete
debug - 2024-07-12 11:42:11,097 -- Commit creating result --- {"result": "RequestResult(error=RequestError(code='HTTP Error 403', params={}, description='{\"detail\":\"You do not have permission to perform this action.\"}'), warnings=[], status_code=403, text='{\"detail\":\"You do not have permission to perform this action.\"}')"}
error - 20[24](https://github.com/josecelano-test/pull_request_target/actions/runs/9907290283/job/27370651458#step:5:25)-07-12 11:42:11,097 -- Commit creating failed: {"detail":"You do not have permission to perform this action."}
I have another workflow using version 3, and it works:
Reacted by Radostin Stoyanov
Activity
josecelano commentedon Jul 30, 2024
It's also failing with the latest version: 4.5.0. See https://github.com/josecelano-test/pull_request_target/actions/runs/9907290283/job/28115928698#step:1:29
Spacetown commentedon Aug 20, 2024
Same for me. I'm wondering why in the log the first character of the token isn't masked:
"token": "e******************"For me (https://github.com/gcovr/gcovr/actions/runs/10461552705/job/28970126469) it shows
"token": "6******************"but the token doesn't start with a6.ajfriend commentedon Aug 25, 2024
We seem to be having the same issue here: uber/h3-py#389
beat-buesser commentedon Aug 27, 2024
We see the same issue in https://github.com/Trusted-AI/adversarial-robustness-toolbox. The new action codecov-action@v4 and secret for Dependabot have worked for the Dependabot-PR updating to codecov-action@v4, but it seems not to work for PRs already opened by Dependabot before upgrading to codecov-action@v4. I have not yet observed new Dependabot PRs and if codecov-action@v4 would work there.
thomasrockhu-codecov commentedon Nov 5, 2024
@josecelano we made some changes to the backend, do you mind trying v4 again?
josecelano commentedon Nov 5, 2024
Hi @thomasrockhu-codecov, I've tried to re-try the workflow execution but now I have an error in the cargo build command. It seems one of the Rust flags I'm using was removed in the meantime. And the action I use to generate the coverage data looks unmaintained, too :-(
https://github.com/alekitto/grcov
I need to fix all those issues to recheck.
The error:
thomasrockhu-codecov commentedon Nov 5, 2024
Oh geez, sorry to see that @josecelano. To be honest I'm not a rust developer, so I'm really not sure how to help, but let me know if there is something I can do
josecelano commentedon Nov 5, 2024
Hi @thomasrockhu-codecov I've created a new workflow in my sample project:
https://github.com/josecelano-test/pull_request_target/blob/develop/.github/workflows/coverage_v2.yaml
In the lastest workflow execution, the report was generated successfully, and it was also uploaded to codecov:
https://github.com/josecelano-test/pull_request_target/actions/runs/11690464665/job/32555468619
However, the repot page on codecov is empty:
https://app.codecov.io/github/josecelano/pull_request_target/commit/990630ba59542eb5f04911ad94e514df7a9ebabf
I'm trying to generate the report without using a GitHub action. I can see the report locally in HTML format, this is the coverage info I'm uploading:
lcov.infothomasrockhu-codecov commentedon Nov 8, 2024
@josecelano are you running this as a pull_request or push event? I see
workflow_runandpull_request_target, and I was curious about your use case. I haven't tested those flows out in awhile and want to make sure that I understandjosecelano commentedon Nov 11, 2024
Hi @thomasrockhu-codecov in that case is a push event.
Is there an example of using the codecov client with a valid Lcov file somewhere?
thomasrockhu-codecov commentedon Nov 11, 2024
@josecelano ok, I'm actually seeing a permissions error on our side. Can you try 2 things
v5-betatag for thecodecov-action?josecelano commentedon Nov 13, 2024
Hey @thomasrockhu-codecov, the token was wrong. I probably thought that the token was per user, not per project. After changing the token, I was able to see a new error. I have continued working on the example, and it works now. Thank you very much for your support!!! And sorry for my mistake.
The full working example is here: https://github.com/josecelano-test/pull_request_target
And the latest coverage report: https://app.codecov.io/github/josecelano-test/pull_request_target/commit/bb0e9789b1417b857e2d09c2c76e1596b96a98e0
thomasrockhu-codecov commentedon Nov 13, 2024
@josecelano no worries, glad that it worked for you! Pesky tokens