Validate infrastructure as code (IaC) and DevOps repositories using Azure Pipelines.
Перейти к файлу
dependabot[bot] a7ec4fadd6
Bump the dev-linting group across 1 directory with 3 updates
Bumps the dev-linting group with 3 updates in the / directory: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin), [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) and [eslint](https://github.com/eslint/eslint).


Updates `@typescript-eslint/eslint-plugin` from 8.14.0 to 8.15.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.15.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.14.0 to 8.15.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.15.0/packages/parser)

Updates `eslint` from 9.14.0 to 9.15.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.14.0...v9.15.0)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-linting
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-linting
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-linting
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-19 00:15:46 +00:00
.azure-pipelines Bump PowerShell dependencies (#922) 2023-12-02 17:39:32 +10:00
.github Group linting dependencies (#1094) 2024-10-23 17:19:16 +10:00
.vscode Updates to CI process (#840) 2023-07-07 11:59:59 +10:00
docs Fix summary clean up (#725) 2023-03-05 15:48:07 +10:00
images Updates to tasks and icon #279 #278 #265 (#280) 2022-01-03 16:20:29 +10:00
plugins Removed depreciated V0 and V1 tasks #695 (#1064) 2024-09-06 20:48:06 +10:00
scripts Update to build (#691) 2023-02-16 19:35:02 +10:00
tasks Removed depreciated V0 and V1 tasks #695 (#1064) 2024-09-06 20:48:06 +10:00
tests Added updates #353 #314 (#354) 2022-04-05 09:44:53 +10:00
.eslintignore Switch to eslint (#293) 2022-02-01 16:39:38 +10:00
.eslintrc.json Update config (#697) 2023-02-16 22:25:53 +10:00
.gitignore Add extension and CI pipeline (#1) 2020-04-05 17:19:45 +10:00
.markdownlint.json Update config (#697) 2023-02-16 22:25:53 +10:00
CHANGELOG.md Bump azure-pipelines-task-lib from 4.17.2 to 4.17.3 (#1081) 2024-11-02 15:11:26 +10:00
CODE_OF_CONDUCT.md Add extension and CI pipeline (#1) 2020-04-05 17:19:45 +10:00
CONTRIBUTING.md Add extension and CI pipeline (#1) 2020-04-05 17:19:45 +10:00
GitVersion.yml Update to build (#691) 2023-02-16 19:35:02 +10:00
LICENSE Add extension and CI pipeline (#1) 2020-04-05 17:19:45 +10:00
README.md Fix release (#696) 2023-02-16 22:11:26 +10:00
SECURITY.md Add extension and CI pipeline (#1) 2020-04-05 17:19:45 +10:00
SUPPORT.md Added SUPPORT.md (#152) 2021-05-01 23:34:39 +10:00
build.mjs Removed depreciated V0 and V1 tasks #695 (#1064) 2024-09-06 20:48:06 +10:00
extension.config.cjs Removed depreciated V0 and V1 tasks #695 (#1064) 2024-09-06 20:48:06 +10:00
extension.md Update extension instructions (#605) 2022-11-19 17:19:06 +10:00
modules.json Update VstsTaskSdk (#961) 2024-03-06 23:24:10 +10:00
package-lock.json Bump the dev-linting group across 1 directory with 3 updates 2024-11-19 00:15:46 +00:00
package.json Bump the dev-linting group across 1 directory with 3 updates 2024-11-19 00:15:46 +00:00
pipeline.build.ps1 Removed depreciated V0 and V1 tasks #695 (#1064) 2024-09-06 20:48:06 +10:00
ps-project.yaml Update ./modules.json (#944) 2024-01-27 22:16:56 +10:00
ps-rule.yaml Add repo dependency updates (#335) 2022-03-23 20:42:13 +10:00
tsconfig.json Update to build (#691) 2023-02-16 19:35:02 +10:00

README.md

PSRule extension for Azure Pipelines

An Azure DevOps extension for using PSRule within Azure Pipelines.

extension-version

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.

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

Getting started

The PSRule extension includes the following tasks for Azure Pipelines:

Name Friendly name Description Reference
ps-rule-assert PSRule analysis Run analysis with PSRule. reference
ps-rule-install Install PSRule module Install a PowerShell module containing rules. reference

To add these tasks, use the name for YAML pipelines or friendly name of classic pipelines.

Installing PSRule extension

To use PSRule within Azure DevOps Services, install the extension from the Visual Studio Marketplace. For detailed instructions see Install extensions.

If you don't have permissions to install extensions within your Azure DevOps organization, you can request it to be installed by an admin instead.

Using within YAML pipelines

To use these tasks within YAML pipelines:

  • Install rule modules with the ps-rule-install task (optional).
  • Run analysis one or more times with the ps-rule-assert task.
  • Publish analysis results with the Publish Test Results builtin task.

For example:

steps:

# Install PSRule.Rules.Azure from the PowerShell Gallery
- task: ps-rule-install@2
  inputs:
    module: PSRule.Rules.Azure   # Install PSRule.Rules.Azure from the PowerShell Gallery.

# Run analysis from JSON files using the `PSRule.Rules.Azure` module and custom rules from `.ps-rule/`.
- task: ps-rule-assert@2
  inputs:
    modules: 'PSRule.Rules.Azure'            # Analyze objects using the rules within the PSRule.Rules.Azure PowerShell module.
    outputFormat: NUnit3                     # Save results to an NUnit report.
    outputPath: reports/ps-rule-results.xml  # Write NUnit report to 'reports/ps-rule-results.xml'.

# Publish NUnit report as test results
- task: PublishTestResults@2
  displayName: 'Publish PSRule results'
  inputs:
    testRunTitle: 'PSRule'                          # The title to use for the test run.
    testRunner: NUnit                               # Import report using the NUnit format.
    testResultsFiles: 'reports/ps-rule-results.xml' # The previously saved NUnit report.

Changes and versioning

Extensions and tasks in this repository uses semantic versioning to declare breaking changes. For a list of module changes please see the change log.

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.