Skip to content

Adapt pull request workflow to work properly for PRs from forked repositories #168

Closed
@OptimumCode

Description

@OptimumCode

As I recently discovered the secrets are not available in workflows triggered from forked repositories:

With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository.

https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow

There is a suggestion on what can be done to mitigate this.

We need to split workflows into parts that execute code from forked repositories (which don't need access to secrets) and that process the results (e.g. publishing coverage report)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions