Skip to content

Disable steps that requires secrets in GitHub Action workflows #48

@end2endzone

Description

@end2endzone

The 3 GitHub Action workflows for this projects builds and executes tests on multiple platforms. The workflows can be summarized as follows:

  1. 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.
  2. Build and run unit tests
  3. At the end of the workflow, a step uploads a green "53 passed" badge such as image 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.".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions