You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 3 GitHub Action workflows for this projects builds and executes tests on multiple platforms. The workflows can be summarized as follows:
At the beginning of the workflow, there is a step that uploads a "test incomplete" badge to one of my gist. This is to override the previous existing badge in case the workflow encounters an error.
Build and run unit tests
At the end of the workflow, a step uploads a green "53 passed" badge such as to the same gist. This badge overrides the one uploaded at step 1.
Since these 2 steps require the use of secrets environment variable to get write access to the gist.
The problem is they fails when executed as a PR checks because (from the project's Actions secrets page) : "Secrets are not passed to workflows that are triggered by a pull request from a fork. Learn more.".
The text was updated successfully, but these errors were encountered:
The workaround specified above will not be implemented since it would make all workflows hard to maintain and error prone.
The best solution is to add an if statement for each steps that requires a secret. The stack overflow article Only run GitHub Actions step if not a pull request explains how to proceed.
The 3 GitHub Action workflows for this projects builds and executes tests on multiple platforms. The workflows can be summarized as follows:
Since these 2 steps require the use of secrets environment variable to get write access to the gist.
The problem is they fails when executed as a PR checks because (from the project's Actions secrets page) : "Secrets are not passed to workflows that are triggered by a pull request from a fork. Learn more.".
The text was updated successfully, but these errors were encountered: