actions-marketplace-validations/Privileged Requester
Checks a PR against configurable criteria to determine whether or not the PR should be automatically approved
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | 'The GitHub token used to create an authenticated client - Provided for you by default! - Repository scoped token' You can use the default provided token or you can provide a PAT as an alternative robot user token | yes | ${{ github.token }} |
| handle | When using the default github.token (from above), the "handle" is fetched from this input since the token is repository scoped and it cannot even read its own handle. You should not need to change this input. | yes | github-actions[bot] |
| path | Path where the privileged requester configuration can be found | yes | config/privileged-requester.yaml |
| prCreator | The creator of the PR for this pull request event | yes | ${{ github.event.pull_request.user.login }} |
| prNumber | The number of the PR for this pull request event | yes | ${{ github.event.pull_request.number }} |
| checkCommits | An option to check that every commit in the PR is made from the privileged requester | yes | true |
| checkDiff | An option to check that the PR diff only has a removal diff, with no additions | yes | true |
| checkLabels | An option to check that the labels on the PR match those defined in the privileged requester config | yes | true |
| commitVerification | Whether or not to validate all commits have proper verification via GPG signed commits | yes | false |
| fallback_to_commit_author | Whether or not to fallback to the commit author value if the commit login value is missing | yes | false |
Outputs
| name | description |
|---|---|
| approved | Whether or not the PR was approved - 'true' or 'false' |
| commits_verified | The string "true" if all commits in the PR are signed/verified |