microsoft/.github

Public

mirrored from https://github.com/microsoft/.githubAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
main

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

policies/mandatory-files.yml

40lines · modecode

1# metadata
2name: Mandatory files policy.
3description: this policy will ensure the presence of important files in Microsoft project repositories.
4
5# filters
6resource: repository
7where:
8- |
9 !repository.name.equals("openjdk-jdk", StringComparison.InvariantCultureIgnoreCase)
10 && !repository.name.equals("openjdk-jdk11u", StringComparison.InvariantCultureIgnoreCase)
11 && !repository.name.equals("openjdk-jdk17u", StringComparison.InvariantCultureIgnoreCase)
12 && !repository.name.equals("openjdk-jdk20u", StringComparison.InvariantCultureIgnoreCase)
13 && !repository.name.equals("openjdk-jdk21u", StringComparison.InvariantCultureIgnoreCase)
14 && !repository.name.equals("vscode-wiki", StringComparison.InvariantCultureIgnoreCase) # A special repo that mirrors vscode.wiki to enable contributions
15
16# primitive configuration
17configuration:
18 mandatoryFiles:
19 autoMergeDays: 10
20 issueTitle: This repo is missing important files
21 issueBody: |
22 There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
23
24 Microsoft teams can [learn more about this effort and share feedback](https://docs.opensource.microsoft.com/releasing/maintain/templates/) within the open source guidance available internally.
25 prTitle: Adding Microsoft SECURITY.MD
26 prBody: |
27 Please accept this contribution adding the standard Microsoft SECURITY.MD :lock: file to help the community understand the security policy and how to safely report security issues. GitHub uses the presence of this file to light-up security reminders and a link to the file. This pull request commits the latest official SECURITY.MD file from https://github.com/microsoft/repo-templates/blob/main/shared/SECURITY.md.
28
29 Microsoft teams can [learn more about this effort and share feedback](https://docs.opensource.microsoft.com/releasing/maintain/templates/) within the open source guidance available internally.
30 file:
31 - path: SECURITY.md
32 prContentLink: https://raw.githubusercontent.com/microsoft/repo-templates/main/shared/SECURITY.md
33 ignoreCase: true
34 prFilePath: SECURITY.md
35 otherPaths:
36 - docs/SECURITY.md
37 - .github/SECURITY.md
38 issueReminder:
39 firstReminderGapDays: 7
40 followUpReminderGapDays: 2
41