step-security/Require Labels
Require labels to be added to a pull request before merging
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | The GitHub token to use when calling the API | no | ${{ github.token }} |
| labels | Comma or new line separated list of labels to match | yes | — |
| mode | The mode of comparison to use. One of: exactly, minimum, maximum | yes | — |
| count | The required number of labels to match | yes | — |
| message | The message to log and to add to the PR (if add_comment is true). See the README for available placeholders | no | Label error. Requires {{errorString}} {{count}} of: {{ provided }}. Found: {{ applied }} |
| add_comment | Add a comment to the PR if required labels are missing | no | false |
| exit_type | The exit type of the action. One of: failure, success | no | — |
| use_regex | Evaluate the values in `labels` as regular expressions | — | false |
Outputs
| name | description |
|---|---|
| labels | The labels that were matched as a comma separated string |
| status | The status of the action. |