launchdarkly/LaunchDarkly Code References
Find references to feature flags in your code.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 17, 2026
- License
- None
Pinned Snippet
uses: launchdarkly/find-code-references@89a7d362d1d4b3725fe0fe0ccd0dc69e3bdcba58 # v2.14.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| accessToken | A token with write access to the LaunchDarkly project. | yes | — |
| allowTags | Enable storing references for tags. Lists the tag as a branch. | no | false |
| baseUri | The base URL of the LaunchDarkly server for this configuration. | no | https://app.launchdarkly.com |
| contextLines | The number of context lines above and below a code reference for the job to send to LaunchDarkly. By default, the flag finder will not send any context lines to LaunchDarkly. If < 0, it will send no source code to LaunchDarkly. If 0, it will send only the lines containing flag references. If > 0, it will send that number of context lines above and below the flag reference. You may provide a maximum of 5 context lines. | no | 2 |
| debug | Enable verbose debug logging. | no | false |
| ignoreServiceErrors | If enabled, the scanner will terminate with exit code 0 when the LaunchDarkly API is unreachable or returns an unexpected response. | no | false |
| lookback | Set the number of commits to search in history for whether you removed a feature flag from code. You may set to 0 to disable this feature. Setting this option to a high value will increase search time. | no | 10 |
| projKey | Key of the LaunchDarkly project associated with this repository. Found under Account Settings -> Projects in the LaunchDarkly dashboard. Cannot be combined with `projects` block in configuration file. | no | — |
| repoName | The repository name. Defaults to the current GitHub repository. | no | — |
| prune | There is a known issue where the GitHub Action will not prune deleted branch data in private repos. Only enable this if you are running the action in a public repo. | no | false |
| subdirectory | The subdirectory to run the action in. | no | — |
Outputs
no outputs