Files
winget-pkgs/.github/policies/labelAdded.errorHashMismatch.yml
T

52 lines
1.7 KiB
YAML

id: labelAdded.errorHashMismatch
name: GitOps.PullRequestIssueManagement
description: Handlers when a hash mismatch is detected in validation
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
When the label "Error-Hash-Mismatch" or "Validation-Hash-Verification-Failed" is added to a pull request
* Add a reply notifying the issue author
* Assign to the author
* Label with Needs-Author-Feedback
* Remove Azure-Pipeline-Passed label
* Remove Needs-Attention label
if:
- payloadType: Pull_Request
- or:
- labelAdded:
label: Validation-Hash-Verification-Failed
- labelAdded:
label: Error-Hash-Mismatch
then:
- addReply:
reply: >-
Hello ${issueAuthor},
I am sorry to report that the Sha256 Hash does not match the installer. This may be caused by using a vanity URL rather than a URL directly to the binary.
Please check the HASH and submit again. Sorry for the inconvenience.
###### Template: msftbot/validationError/installers/hashMismatch
- removeLabel:
label: Azure-Pipeline-Passed
- assignTo:
author: True
- removeLabel:
label: Needs-Attention
- addLabel:
label: Needs-Author-Feedback
- addLabel:
label: Validation-Guide
# The policy service should trigger even when the label was added by the policy service
triggerOnOwnActions: true
onFailure:
onSuccess: