Using contexts on a non-org fork by an in-org user

contexts

#1

Reading the documentation for contexts, I was hoping I might be able to use them to enable environment variables for PRs by org members when the PR is coming from a fork:

To use environment variables set on the Contexts page, the person running the workflow must be a member of the organization for which the context is set

In some open-source projects I work on, a few members insist on working on their own forks, which makes CI a bit of a pain when sensitive environment variables are involved. We’d like to not share them with just any random PR, but only with PRs by certain people (e.g. org members). Contexts sounded like they might fit the bill perfectly, but I just tried this and it doesn’t seem work. Am I misunderstanding how they’re supposed to work (is it just across repos owned by an org), or do I likely have something misconfigured?


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.