Comments (3)
Perhaps I'm conflating the 2 repos. #whoops
My aim is to test what was committed in this PR.
Azure/PSRule.Rules.Azure#2004
from ps-rule.
@Gordonby I might not be understanding the issue correctly so please correct me.
PSRule v2.7.0 is the latest version, and the GitHub Action microsoft/[email protected]
should be installing PSRule v2.7.0 by default.
Using microsoft/ps-rule@main
will also install PSRule v2.7.0 by default because no newer version is available.
The microsoft/ps-rule@main
is the correct syntax to use the latest version of the GitHub Action. However, currently there is no difference between @main
and v2.7.0
because they point to the same commit 1570d77.
If you would like to install a different PSRule version with the microsoft/ps-rule
action you can specify the version:
input parameter as you have done. The value of the version:
parameter is the version of the PowerShell module you would like to install not the branch/ tag name, we can improve the documentation here.
For example, the following would use the latest action but install PSRule v1.11.1.
- name: Run PSRule analysis
uses: microsoft/ps-rule@main
with:
version: '1.11.1'
See usage
So if you want to install latest stable version of everything just use:
- name: PSRule for Azure - Well Architected
uses: microsoft/ps-rule@main
continue-on-error: true #Setting this whilst PSRule gets bedded in, in this project
with:
modules: 'PSRule.Rules.Azure'
inputPath: "${{ env.ParamFilePath }}"
I hope that helps.
from ps-rule.
@Gordonby Sure no problem. You should get the latest version with the prerelease: true
input parameter.
So try:
- name: PSRule for Azure - Well Architected
#uses: microsoft/[email protected]
uses: microsoft/ps-rule@main
continue-on-error: true #Setting this whilst PSRule gets bedded in, in this project
with:
modules: 'PSRule.Rules.Azure'
inputPath: "${{ env.ParamFilePath }}"
prerelease: true
This should install the latest prerelease version PSRule for Azure which would be v1.24.0-B0035
. Currently there isn't a way to target a specific prerelease for PSRule for Azure, but it shouldn't matter in the case :)
https://github.com/microsoft/ps-rule#prerelease
from ps-rule.
Related Issues (20)
- Bump PSRule dependency to v1.9.0
- Bump PSRule dependency to v1.10.0
- Bump PowerShell image to 7.2.1
- Bump PSRule dependency to v1.11.0
- Allow choice of PSRule version to install
- Allow installation of modules from other sources
- Add support for output using SARIF format
- Import of pre-release version HOT 1
- Expose more rule error output in CI HOT 3
- https://s.reddit.com/c/18nkulrrkk5hi HOT 2
- Path issue calling powershell.ps1
- Add support for alternative option file
- Assertion failed with newer version
- Add outcome filtering parameter
- Additional handling for exception messages
- InputPath is relative
- Add release branches
- Add job summaries
- Fix summary with job summary
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps-rule.