launchdarkly / find-code-references

Find references to feature flags in your code
https://docs.launchdarkly.com/home/code/github-actions
57 stars 16 forks source link

Action fails on forked repositories #24

Closed rarichard closed 2 years ago

rarichard commented 2 years ago

AFAIK, secrets aren't available on forks, so anytime someone forks our repo the action fails to run because the LaunchDarkly secret is missing.

Any ideas to mitigate?

jazanne commented 2 years ago

Hi @rarichard, I would recommend setting up this action so that it doesn't run on PRs from forks or forks themselves, but still runs once they are merged. At this time I don't believe there is a GHA best practice for running an action with secrets in forks.