Migrate repository to Microsoft GitHub org #152 (#165)

* Migrate repository to Microsoft GitHub org #152

* Update codeowners
This commit is contained in:
Bernie White 2020-12-17 17:20:29 +10:00 коммит произвёл GitHub
Родитель 9592525696
Коммит 0227e28654
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
14 изменённых файлов: 252 добавлений и 54 удалений

Просмотреть файл

@ -93,7 +93,7 @@ stages:
action: edit
tag: '$(Build.SourceBranchName)'
releaseNotesSource: input
releaseNotes: 'See [change log](https://github.com/BernieWhite/PSRule-vscode/blob/main/CHANGELOG.md)'
releaseNotes: 'See [change log](https://github.com/Microsoft/PSRule-vscode/blob/main/CHANGELOG.md)'
assetUploadMode: replace
addChangeLog: false
isPreRelease: false

2
.github/CODEOWNERS поставляемый
Просмотреть файл

@ -1,2 +1,2 @@
# https://help.github.com/articles/about-codeowners/
* @BernieWhite
* @microsoft/psrule

2
.github/PULL_REQUEST_TEMPLATE.md поставляемый
Просмотреть файл

@ -10,4 +10,4 @@
- [ ] This PR is ready to merge and is not **Work in Progress**
- **Code changes**
- [ ] Link to a filed issue
- [ ] [Change log](https://github.com/BernieWhite/PSRule-vscode/blob/main/CHANGELOG.md) has been updated with change under unreleased section
- [ ] [Change log](https://github.com/Microsoft/PSRule-vscode/blob/main/CHANGELOG.md) has been updated with change under unreleased section

22
.github/dependabot.yml поставляемый
Просмотреть файл

@ -8,19 +8,21 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "daily"
interval: 'daily'
labels:
- "ci-quality"
- 'ci-quality'
reviewers:
- 'microsoft/psrule'
# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "daily"
interval: 'daily'
labels:
- "dependencies"
# reviewers:
# - "microsoft/psrule"
- 'dependencies'
reviewers:
- 'microsoft/psrule'

Просмотреть файл

@ -5,9 +5,9 @@
Rule 'OpenSource.Community' -Type 'PSRule.Data.RepositoryInfo' {
$Assert.FilePath($TargetObject, 'FullName', @('CHANGELOG.md'));
$Assert.FilePath($TargetObject, 'FullName', @('LICENSE'));
# $Assert.FilePath($TargetObject, 'FullName', @('CODE_OF_CONDUCT.md'));
# $Assert.FilePath($TargetObject, 'FullName', @('CONTRIBUTING.md'));
# $Assert.FilePath($TargetObject, 'FullName', @('SECURITY.md'));
$Assert.FilePath($TargetObject, 'FullName', @('CODE_OF_CONDUCT.md'));
$Assert.FilePath($TargetObject, 'FullName', @('CONTRIBUTING.md'));
$Assert.FilePath($TargetObject, 'FullName', @('SECURITY.md'));
$Assert.FilePath($TargetObject, 'FullName', @('README.md'));
$Assert.FilePath($TargetObject, 'FullName', @('.github/CODEOWNERS'));
$Assert.FilePath($TargetObject, 'FullName', @('.github/PULL_REQUEST_TEMPLATE.md'));

Просмотреть файл

@ -10,8 +10,8 @@
What's changed since v0.15.0:
- General improvements:
- Updated PSRule options schema to v0.21.0. [#135](https://github.com/BernieWhite/PSRule-vscode/issues/135)
- Updated PSRule resource schema to v0.21.0. [#134](https://github.com/BernieWhite/PSRule-vscode/issues/134)
- Updated PSRule options schema to v0.21.0. [#135](https://github.com/Microsoft/PSRule-vscode/issues/135)
- Updated PSRule resource schema to v0.21.0. [#134](https://github.com/Microsoft/PSRule-vscode/issues/134)
- Engineering:
- Bump vscode engine to v1.50.0.
@ -20,8 +20,8 @@ What's changed since v0.15.0:
What's changed since v0.14.0:
- General improvements:
- Updated PSRule options schema to v0.20.0. [#106](https://github.com/BernieWhite/PSRule-vscode/issues/106)
- Updated PSRule resource schema to v0.20.0. [#107](https://github.com/BernieWhite/PSRule-vscode/issues/107)
- Updated PSRule options schema to v0.20.0. [#106](https://github.com/Microsoft/PSRule-vscode/issues/106)
- Updated PSRule resource schema to v0.20.0. [#107](https://github.com/Microsoft/PSRule-vscode/issues/107)
- Engineering:
- Bump vscode engine to v1.49.0.
@ -30,105 +30,105 @@ What's changed since v0.14.0:
What's changed since v0.13.0:
- General improvements:
- Updated PSRule options schema to v0.19.0. [#87](https://github.com/BernieWhite/PSRule-vscode/issues/87)
- Updated PSRule options schema to v0.19.0. [#87](https://github.com/Microsoft/PSRule-vscode/issues/87)
## v0.13.0
What's changed since v0.12.0:
- New features:
- Added snippet for ModuleConfig resource. [#75](https://github.com/BernieWhite/PSRule-vscode/issues/75)
- Added snippet for ModuleConfig resource. [#75](https://github.com/Microsoft/PSRule-vscode/issues/75)
- General improvements:
- Updated PSRule resource schema to v0.17.0. [#73](https://github.com/BernieWhite/PSRule-vscode/issues/73)
- Updated PSRule resource schema to v0.17.0. [#73](https://github.com/Microsoft/PSRule-vscode/issues/73)
## v0.12.0
What's changed since v0.11.0:
- General improvements:
- Updated PSRule options schema to v0.16.0. [#68](https://github.com/BernieWhite/PSRule-vscode/issues/68)
- Updated PSRule options schema to v0.16.0. [#68](https://github.com/Microsoft/PSRule-vscode/issues/68)
## v0.11.0
What's changed since v0.10.0:
- General improvements:
- Updated PSRule options schema to v0.14.0. [#63](https://github.com/BernieWhite/PSRule-vscode/issues/63)
- Updated PSRule options schema to v0.14.0. [#63](https://github.com/Microsoft/PSRule-vscode/issues/63)
## v0.10.0
What's changed since v0.9.0:
- General improvements:
- Updated markdown snippet to include links section and online version. [#60](https://github.com/BernieWhite/PSRule-vscode/issues/60)
- Updated PSRule options schema to v0.13.0. [#59](https://github.com/BernieWhite/PSRule-vscode/issues/59)
- Updated markdown snippet to include links section and online version. [#60](https://github.com/Microsoft/PSRule-vscode/issues/60)
- Updated PSRule options schema to v0.13.0. [#59](https://github.com/Microsoft/PSRule-vscode/issues/59)
## v0.9.0
What's changed since v0.8.0:
- General improvements:
- Updated PSRule schemas to v0.12.0. [#54](https://github.com/BernieWhite/PSRule-vscode/issues/54)
- Updated PSRule schemas to v0.12.0. [#54](https://github.com/Microsoft/PSRule-vscode/issues/54)
## v0.8.0
What's changed since v0.7.0:
- General improvements:
- Updated PSRule options schema to v0.11.0. [#49](https://github.com/BernieWhite/PSRule-vscode/issues/49)
- Updated PSRule options schema to v0.11.0. [#49](https://github.com/Microsoft/PSRule-vscode/issues/49)
## v0.7.0
What's changed since v0.6.0:
- General improvements:
- Updated PSRule options schema to v0.10.0. [#44](https://github.com/BernieWhite/PSRule-vscode/issues/44)
- Updated PSRule options schema to v0.10.0. [#44](https://github.com/Microsoft/PSRule-vscode/issues/44)
## v0.6.0
What's changed since v0.5.0:
- New features:
- Added PSRule resource schema. [#39](https://github.com/BernieWhite/PSRule-vscode/issues/39)
- Added snippet for baseline resource. [#40](https://github.com/BernieWhite/PSRule-vscode/issues/40)
- Added highlighting for `Synopsis:` resource comments. [#41](https://github.com/BernieWhite/PSRule-vscode/issues/41)
- Added PSRule resource schema. [#39](https://github.com/Microsoft/PSRule-vscode/issues/39)
- Added snippet for baseline resource. [#40](https://github.com/Microsoft/PSRule-vscode/issues/40)
- Added highlighting for `Synopsis:` resource comments. [#41](https://github.com/Microsoft/PSRule-vscode/issues/41)
- General improvements:
- Updated PSRule options schema to v0.9.0. [#38](https://github.com/BernieWhite/PSRule-vscode/issues/38)
- Updated PSRule options schema to v0.9.0. [#38](https://github.com/Microsoft/PSRule-vscode/issues/38)
## v0.5.0
What's changed since v0.4.0:
- New features:
- Added snippet and syntax support for Reason keyword. [#32](https://github.com/BernieWhite/PSRule-vscode/issues/32)
- Added snippet and syntax support for Reason keyword. [#32](https://github.com/Microsoft/PSRule-vscode/issues/32)
- General improvements:
- Updated PSRule options schema to v0.8.0. [#31](https://github.com/BernieWhite/PSRule-vscode/issues/31)
- Updated PSRule options schema to v0.8.0. [#31](https://github.com/Microsoft/PSRule-vscode/issues/31)
## v0.4.0
What's changed since v0.3.0:
- General improvements:
- Updated PSRule options schema to v0.7.0. [#26](https://github.com/BernieWhite/PSRule-vscode/issues/26)
- Updated PSRule options schema to v0.7.0. [#26](https://github.com/Microsoft/PSRule-vscode/issues/26)
## v0.3.0
What's changed since v0.2.0:
- New features:
- Added highlighting for `Synopsis:` metadata in comments. [#16](https://github.com/BernieWhite/PSRule-vscode/issues/16)
- Added syntax highlighting and snippet for `Recommend` keyword. [#17](https://github.com/BernieWhite/PSRule-vscode/issues/17)
- Added markdown snippet for rule documentation. [#19](https://github.com/BernieWhite/PSRule-vscode/issues/19)
- Added highlighting for `Synopsis:` metadata in comments. [#16](https://github.com/Microsoft/PSRule-vscode/issues/16)
- Added syntax highlighting and snippet for `Recommend` keyword. [#17](https://github.com/Microsoft/PSRule-vscode/issues/17)
- Added markdown snippet for rule documentation. [#19](https://github.com/Microsoft/PSRule-vscode/issues/19)
## v0.2.0
What's changed since v0.1.0:
- General improvements:
- Updated PSRule options schema to v0.5.0. [#12](https://github.com/BernieWhite/PSRule-vscode/issues/12)
- Updated PSRule options schema to v0.5.0. [#12](https://github.com/Microsoft/PSRule-vscode/issues/12)
- Bug fixes:
- Fixed CI badge not displaying in VSCode extension tab. [#8](https://github.com/BernieWhite/PSRule-vscode/issues/8)
- Fixed syntax highlighting for keywords that are included in comments. [#10](https://github.com/BernieWhite/PSRule-vscode/issues/10)
- Fixed CI badge not displaying in VSCode extension tab. [#8](https://github.com/Microsoft/PSRule-vscode/issues/8)
- Fixed syntax highlighting for keywords that are included in comments. [#10](https://github.com/Microsoft/PSRule-vscode/issues/10)
## v0.1.0

9
CODE_OF_CONDUCT.md Normal file
Просмотреть файл

@ -0,0 +1,9 @@
# Microsoft Open Source Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
Resources:
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns

103
CONTRIBUTING.md Normal file
Просмотреть файл

@ -0,0 +1,103 @@
# Contributing to PSRule
Welcome, and thank you for your interest in contributing to PSRule!
There are many ways in which you can contribute, beyond writing code.
The goal of this document is to provide a high-level overview of how you can get involved.
- [Reporting issues](#reporting-issues)
- Fix bugs or add features
## Contributor License Agreement (CLA)
This project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visit
https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## Reporting issues
Have you identified a reproducible problem?
Have a feature request?
We want to hear about it!
Here's how you can make reporting your issue as effective as possible.
### Look for an existing issue
Before you create a new issue, please do a search in [open issues][issues] to see if the issue or feature request has already been filed.
If you find your issue already exists,
make relevant comments and add your [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments).
Use a reaction in place of a "+1" comment:
* 👍 - upvote
## Contributing to code
- Before writing a fix or feature enhancement, ensure that an issue is logged.
- Be prepared to discuss a feature and take feedback.
- Include unit tests and updates documentation to complement the change.
When you are ready to contribute a fix or feature:
- Start by [forking the PSRule-vscode][github-fork].
- Create a new branch from main in your fork.
- Add commits in your branch.
- If you have updated module code or rules also update `CHANGELOG.md`.
- You don't need to update the `CHANGELOG.md` for changes to unit tests or documentation.
- Try building your changes locally. See [building from source][build] for instructions.
- [Create a pull request][github-pr-create] to merge changes into the PSRule `main` branch.
- If you are _ready_ for your changes to be reviewed create a _pull request_.
- If you are _not ready_ for your changes to be reviewed, create a _draft pull request_.
- An continuous integration (CI) process will automatically build your changes.
- You changes must build successfully to be merged.
- If you have any build errors, push new commits to your branch.
- Avoid using forced pushes or squashing changes while in review, as this makes reviewing your changes harder.
### Intro to Git and GitHub
When contributing to documentation or code changes, you'll need to have a GitHub account and a basic understanding of Git.
Check out the links below to get started.
- Make sure you have a [GitHub account][github-signup].
- GitHub Help:
- [Git and GitHub learning resources][learn-git].
- [GitHub Flow Guide][github-flow].
- [Fork a repo][github-fork].
- [About Pull Requests][github-pr].
### Code editor
You should use the multi-platform [Visual Studio Code][vscode] (VS Code).
The project contains a number of workspace specific settings that make it easier to author consistently.
### Building and testing
When creating a pull request to merge your changes, a continuous integration (CI) pipeline is run.
The CI pipeline will build then test your changes across MacOS, Linux and Windows configurations.
Before opening a pull request try building your changes locally.
## Thank You!
Your contributions to open source, large or small, make great projects like this possible.
Thank you for taking the time to contribute.
[learn-git]: https://help.github.com/en/articles/git-and-github-learning-resources
[github-flow]: https://guides.github.com/introduction/flow/
[github-signup]: https://github.com/signup/free
[github-fork]: https://help.github.com/en/github/getting-started-with-github/fork-a-repo
[github-pr]: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests
[github-pr-create]: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork
[vscode]: https://code.visualstudio.com/
[issues]: https://github.com/Microsoft/PSRule-vscode/issues

Просмотреть файл

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019 Bernard White
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

Просмотреть файл

@ -12,11 +12,17 @@ Features include:
- Snippets for rule documentation.
- YAML schema validation for options.
## Disclaimer
## Support
This project is to be considered a **proof-of-concept** and **not a supported product**.
This project uses GitHub Issues to track bugs and feature requests.
Please search the existing issues before filing new issues to avoid duplicates.
If you have any problems please check our GitHub [issues](https://github.com/BernieWhite/PSRule-vscode/issues) page. If you do not see your problem captured, please file a new issue and follow the provided template.
- For new issues, file your bug or feature request as a new [Issue][issues].
- For help and questions about using this project, we have a Gitter room which you can join below.
[![Join the chat][chat-badge]][chat]
Support for this project/ product is limited to the resources listed above.
## Installing PSRule module
@ -38,16 +44,33 @@ code --install-extension bewhite.psrule-vscode-preview
> NOTE: If you are using VS Code Insiders, the command will be `code-insiders`.
## Contributing
This project welcomes contributions and suggestions.
If you are ready to contribute, please visit the [contribution guide].
## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## Maintainers
- [Bernie White](https://github.com/BernieWhite)
## License
This project is [licensed under the MIT License](LICENSE).
This project is [licensed under the MIT License][license].
[issues]: https://github.com/Microsoft/PSRule-vscode/issues
[ci-badge]: https://dev.azure.com/bewhite/PSRule-vscode/_apis/build/status/PSRule-vscode-CI?branchName=main
[vscode-ext-gallery]: https://code.visualstudio.com/docs/editor/extension-gallery
[ext]: https://marketplace.visualstudio.com/items?itemName=bewhite.psrule-vscode-preview
[ext-version-badge]: https://vsmarketplacebadge.apphb.com/version/bewhite.psrule-vscode-preview.svg
[ext-installs-badge]: https://vsmarketplacebadge.apphb.com/installs-short/bewhite.psrule-vscode-preview.svg
[contribution guide]: https://github.com/Microsoft/PSRule-vscode/blob/main/CONTRIBUTING.md
[change log]: https://github.com/Microsoft/PSRule-vscode/blob/main/CHANGELOG.md
[license]: https://github.com/Microsoft/PSRule-vscode/blob/main/LICENSE
[chat]: https://gitter.im/PSRule/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
[chat-badge]: https://img.shields.io/static/v1.svg?label=chat&message=on%20gitter&color=informational&logo=gitter

43
SECURITY.md Normal file
Просмотреть файл

@ -0,0 +1,43 @@
# Security policy
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
## Security
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
## Reporting Security Issues
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
## Preferred Languages
We prefer all communications to be in English.
## Policy
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
<!-- END MICROSOFT SECURITY.MD BLOCK -->

18
SUPPORT.md Normal file
Просмотреть файл

@ -0,0 +1,18 @@
# Support
## How to file issues and get help
This project uses GitHub Issues to track bugs and feature requests.
Please search the existing issues before filing new issues to avoid duplicates.
For new issues, file your bug or feature request as a new Issue.
For help and questions about using this project, we have a Gitter room which you can join below.
[![Join the chat][chat-badge]][chat]
## Microsoft Support Policy
Support for this project/ product is limited to the resources listed above.
[chat]: https://gitter.im/PSRule/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
[chat-badge]: https://img.shields.io/static/v1.svg?label=chat&message=on%20gitter&color=informational&logo=gitter

Просмотреть файл

@ -11,7 +11,7 @@
"vscode": "^1.51.0"
},
"license": "SEE LICENSE IN LICENSE",
"homepage": "https://github.com/BernieWhite/PSRule-vscode/blob/main/README.md",
"homepage": "https://github.com/Microsoft/PSRule-vscode/blob/main/README.md",
"categories": [
"Other",
"Snippets"
@ -26,10 +26,10 @@
"icon": "images/icon128.png",
"repository": {
"type": "git",
"url": "https://github.com/BernieWhite/PSRule-vscode.git"
"url": "https://github.com/Microsoft/PSRule-vscode.git"
},
"bugs": {
"url": "https://github.com/BernieWhite/PSRule-vscode/issues"
"url": "https://github.com/Microsoft/PSRule-vscode/issues"
},
"private": true,
"preview": true,

Просмотреть файл

@ -3,14 +3,14 @@ info:
name: PSRule
description: |
Visual Studio Code extension for PSRule.
url: https://github.com/BernieWhite/PSRule-vscode
url: https://github.com/Microsoft/PSRule-vscode
repository:
type: git
url: https://github.com/BernieWhite/PSRule-vscode.git
url: https://github.com/Microsoft/PSRule-vscode.git
bugs:
url: https://github.com/BernieWhite/PSRule-vscode/issues
url: https://github.com/Microsoft/PSRule-vscode/issues
tasks:
clear: