A suite of rules to validate repositories against Microsoft Open Source Software (OSS) requirements.
Перейти к файлу
Bernie White 89a0589847
Pre-release v1.1.0-B2301014 (#62)
2023-01-31 23:19:37 +10:00
.azure-pipelines Bump PowerShell dependencies (#46) 2022-12-12 20:18:14 +10:00
.devcontainer Added project files (#3) 2020-11-24 23:54:14 +10:00
.github Minor updates to docs (#61) 2023-01-31 22:11:02 +10:00
.ps-rule Added project files (#3) 2020-11-24 23:54:14 +10:00
.vscode Minor updates to docs (#61) 2023-01-31 22:11:02 +10:00
docs Update CI workflows (#34) 2022-04-18 13:04:48 +10:00
scripts Update CI workflows (#34) 2022-04-18 13:04:48 +10:00
src/PSRule.Rules.MSFT.OSS Minor updates to docs (#61) 2023-01-31 22:11:02 +10:00
tests/PSRule.Rules.MSFT.OSS.Tests Update CI workflows (#34) 2022-04-18 13:04:48 +10:00
.gitignore Initial repo files (#1) 2020-09-04 00:46:36 +10:00
.markdownlint.json Initial repo files (#1) 2020-09-04 00:46:36 +10:00
CHANGELOG.md Pre-release v1.1.0-B2301014 (#62) 2023-01-31 23:19:37 +10:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-09-03 07:31:36 -07:00
CONTRIBUTING.md Support and general doc updates (#12) 2021-01-07 12:50:42 +10:00
LICENSE Initial repo files (#1) 2020-09-04 00:46:36 +10:00
README.md Minor updates to docs (#61) 2023-01-31 22:11:02 +10:00
RuleToc.Doc.ps1 Added project files (#3) 2020-11-24 23:54:14 +10:00
SECURITY.md Minor updates to docs (#61) 2023-01-31 22:11:02 +10:00
SUPPORT.md Support and general doc updates (#12) 2021-01-07 12:50:42 +10:00
build.ps1 Added project files (#3) 2020-11-24 23:54:14 +10:00
modules.json Bump PowerShell dependencies (#59) 2023-01-31 21:23:21 +10:00
pipeline.build.ps1 Update CI workflows (#34) 2022-04-18 13:04:48 +10:00
ps-project.yaml Update CI workflows (#34) 2022-04-18 13:04:48 +10:00
ps-rule.yaml Update CI images to latest (#23) 2021-12-09 23:02:41 +10:00

README.md

PSRule for Microsoft OSS

A suite of rules to validate repositories against Microsoft Open Source Software (OSS) requirements. This module is intended to be used by Microsoft repositories, and also serves as a functional example.

Open in vscode.dev

Support

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, discussion, and support questions about using this project, join or start a discussion.

If you have any problems with the PSRule engine, please check the project GitHub issues page instead.

Support for this project/ product is limited to the resources listed above.

Getting started

Using with GitHub Actions

  1. See Creating a workflow file.
  2. Reference microsoft/ps-rule with modules: 'PSRule.Rules.MSFT.OSS'
  3. Optionally, set option prerelease: true to use a pre-release version.

For example:

# Example: .github/workflows/analyze.yaml

#
# Repository validation
#
name: Analyze
on:
- pull_request
jobs:
  analyze:
    name: Analyze repository
    runs-on: ubuntu-latest
    steps:

    - name: Checkout
      uses: actions/checkout@v3

    # Run analysis against repository
    - name: Run PSRule analysis
      uses: microsoft/ps-rule@v2.7.0
      with:
        modules: 'PSRule.Rules.MSFT.OSS'
        prerelease: true

Manual install

This project is designed to be run through a continuous integration (CI) pipeline using GitHub Actions.

Additionally, this module can be manually installed from the PowerShell Gallery. For manual installation see instructions.

Changes and versioning

This repository uses semantic versioning to declare breaking changes. For a list of module changes please see the change log.

Pre-release module versions are created on major commits and can be installed from the PowerShell Gallery. Pre-release versions should be considered experimental. Modules and change log details for pre-releases will be removed as standard releases are made available.

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. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Maintainers

License

This project is licensed under the MIT License.