forked from microsoft/winget-pkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8be02a
commit 565bd00
Showing
2 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
id: labelAdded.validationDefenderError | ||
name: GitOps.PullRequestIssueManagement | ||
description: Handlers when "Validation-Defender-Error" label is added | ||
owner: | ||
resource: repository | ||
disabled: false | ||
where: | ||
configuration: | ||
resourceManagementConfiguration: | ||
eventResponderTasks: | ||
- description: >- | ||
When the label "Validation-Defender-Error" is added to a pull request | ||
* Add the PR specific reply notifying the issue author | ||
* Close the PR | ||
if: | ||
- payloadType: Pull_Request | ||
- labelAdded: | ||
label: Validation-Defender-Error | ||
then: | ||
- addReply: | ||
reply: >- | ||
Hello @${issueAuthor}, | ||
The package manager bot was blocked from installing one of the installers listed in the url field, and cannot continue. | ||
The application included in this pull request failed to pass the [Installers Scan](https://docs.microsoft.com/en-us/windows/package-manager/package/winget-validation) test. This test is designed to ensure that the application installs on all environments without warnings. For more details on this error, see [Defender errors](https://learn.microsoft.com/en-us/windows/package-manager/package/repository#error-labels). Please check to ensure the installer URL is correct and update the URL and the Hash if a change is made. | ||
Template: msftbot/validationError/installers/validationDefender | ||
- assignTo: | ||
author: True | ||
- addLabel: | ||
label: Needs-Author-Feedback | ||
- removeLabel: | ||
label: Needs-Attention # This will automatically assign the ICM Users | ||
# The policy service should trigger even when the label was added by the policy service | ||
triggerOnOwnActions: true | ||
onFailure: | ||
onSuccess: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters