prb-contracts
prb-contracts copied to clipboard
Make CI pass on PRs
@Ro5s's triggered a GitHub workflow, which was expected. Unfortunately it failed:
And the reason is that the "MNEMONIC" stored in this GitHub repo's secrets looks to be not available in the environment spun up by GitHub in CI/CD.
TODO: either hardcode the mnemonic or find a way to pick it up from the repo's secrets.
After a quick investigation now, I am starting to think that this could be a bug on GitHub's end. This is the message that I just sent them:
Hi, in my [paulrberg/contracts](https://github.com/paulrberg/contracts) repository, I have multiple GitHub secrets set up:

I have a GitHub workflow that runs some continuous integration checks on my code:
https://github.com/paulrberg/contracts/blob/main/.github/workflows/integration.yaml
This workflows needs access to the GitHub secrets in order to do its job successfully. Now, the workflow works just fine when I push new commits to the `main` branch - the problem is with workflows triggered by PRs coming from repositories forked by external contributors. For instance, take this PR:
https://github.com/paulrberg/contracts/pull/24
And the workflow triggered by it:
https://github.com/paulrberg/contracts/runs/5469321270?check_suite_focus=true
If you look at the logs, you will see that the workflow failed with this error:
> Error: Please set MNEMONIC as an env variable
But that should NOT be the case. The GitHub secret `MNEMONIC` is there. GitHub should be able to pick it up and provide it to the GitHub Actions run. But it doesn't.
So, can you look into this for me? It seems like a cache bug on your end.
Thanks,
Paul