You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ jobs:
28
28
with:
29
29
fetch-depth: 11# This value must be set if the lookback configuration option is not disabled for find-code-references. Read more: https://github.com/launchdarkly/ld-find-code-refs#searching-for-unused-flags-extinctions
30
30
- name: LaunchDarkly Code References
31
-
uses: launchdarkly/find-code-references@v2.12.0
31
+
uses: launchdarkly/find-code-references@v2.13.0
32
32
with:
33
33
accessToken: ${{ secrets.LD_ACCESS_TOKEN }}
34
34
projKey: LD_PROJECT_KEY
@@ -71,7 +71,7 @@ jobs:
71
71
with:
72
72
fetch-depth: 11 # This value must be set if the lookback configuration option is not disabled for find-code-references. Read more: https://github.com/launchdarkly/ld-find-code-refs#searching-for-unused-flags-extinctions
73
73
- name: LaunchDarkly Code References
74
-
uses: launchdarkly/find-code-references@v2.12.0
74
+
uses: launchdarkly/find-code-references@v2.13.0
75
75
with:
76
76
accessToken: ${{ secrets.LD_ACCESS_TOKEN }}
77
77
projKey: LD_PROJECT_KEY
@@ -83,19 +83,20 @@ Once your workflow has been created, the best way to confirm that the workflow i
83
83
84
84
If the action fails, there may be a problem with your configuration. To investigate, dig into the action's logs to view any error messages.
85
85
86
-
<!-- action-docs-inputs -->
86
+
<!-- action-docs-inputs source="action.yml" -->
87
87
## Inputs
88
88
89
-
| parameter | description | required | default |
89
+
| name | description | required | default |
90
90
| --- | --- | --- | --- |
91
-
| accessToken | A token with write access to the LaunchDarkly project. | `true` | |
92
-
| allowTags | Enable storing references for tags. Lists the tag as a branch. | `false` | false |
93
-
| baseUri | The base URL of the LaunchDarkly server for this configuration. | `false` | https://app.launchdarkly.com |
94
-
| 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. | `false` | 2 |
| ignoreServiceErrors | If enabled, the scanner will terminate with exit code 0 when the LaunchDarkly API is unreachable or returns an unexpected response. | `false` | false |
97
-
| 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. | `false` | 10 |
98
-
| 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. | `false` | |
99
-
| repoName | The repository name. Defaults to the current GitHub repository. | `false` | |
100
-
| 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. | `false` | false |
101
-
<!-- action-docs-inputs -->
91
+
| `accessToken` | <p>A token with write access to the LaunchDarkly project.</p> | `true` | `""` |
92
+
| `allowTags` | <p>Enable storing references for tags. Lists the tag as a branch.</p> | `false` | `false` |
93
+
| `baseUri` | <p>The base URL of the LaunchDarkly server for this configuration.</p> | `false` | `https://app.launchdarkly.com` |
94
+
| `contextLines` | <p>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.</p> | `false` | `2` |
| `ignoreServiceErrors` | <p>If enabled, the scanner will terminate with exit code 0 when the LaunchDarkly API is unreachable or returns an unexpected response.</p> | `false` | `false` |
97
+
| `lookback` | <p>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.</p> | `false` | `10` |
98
+
| `projKey` | <p>Key of the LaunchDarkly project associated with this repository. Found under Account Settings -> Projects in the LaunchDarkly dashboard. Cannot be combined with <code>projects</code> block in configuration file.</p> | `false` | `""` |
99
+
| `repoName` | <p>The repository name. Defaults to the current GitHub repository.</p> | `false` | `""` |
100
+
| `prune` | <p>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.</p> | `false` | `false` |
101
+
| `subdirectory` | <p>The subdirectory to run the action in.</p> | `false` | `""` |
Copy file name to clipboardExpand all lines: action.yml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,9 @@ inputs:
42
42
default: "false"
43
43
description: "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."
44
44
required: false
45
+
subdirectory:
46
+
description: "The subdirectory to run the action in."
0 commit comments