Comments (4)
Public GitHub action worker.
Set up job section from the run that failed:
Current runner version: '2.316.0'
Operating System
Ubuntu
22.04.4
LTS
Runner Image
Image: ubuntu-22.04
Version: 20240422.1.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240422.1/images/ubuntu/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240422.1
Runner Image Provisioner
2.0.369.1
GITHUB_TOKEN Permissions
Actions: read
Contents: read
Metadata: read
SecurityEvents: write
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v4' (SHA:0ad4b8fadaa221de15dcec353f45205ec38ea70b)
Download action repository 'microsoft/[email protected]' (SHA:46451b8f5258c41beb5ae69ed7190ccbba84112c)
Download action repository 'github/codeql-action@v3' (SHA:d39d31e687223d841ef683f52467bd88e9b21c14)
Uses: <repo>/.github/workflows/ps-rule-reusable-workflow.yml@refs/heads/main (9b8d9b51e947c03f268f662da22f9d0f7687b85b)
Complete job name: ps-rule-job / Analyze Azure template files
This job runs on multiple repos once a week, have never seen that specific error before. So looks like a one off. That maybe could be guarded against by adding PSGallery if not already added as module repository.
from ps-rule.
We added this to our workflow before running PSRule.
- name: Install required PowerShell modules
continue-on-error: false
shell: pwsh
run: |
# PowerShell preferences
$ErrorActionPreference = 'Stop'
$InformationPreference = 'Continue'
# Import PSResourceGet
Write-Information -MessageData 'Import module "Microsoft.PowerShell.PSResourceGet".'
$null = Import-Module -Name 'Microsoft.PowerShell.PSResourceGet'
# Add PSGallery if not present
Write-Information -MessageData 'Add PSGallery as repository if not already present.'
if ((Get-PSRepository -WarningAction 'SilentlyContinue').'Name' -notcontains 'PSGallery') {
Write-Information -MessageData ' Was not already present, adding it now.'
Register-PSRepository -Default
}
# Install latest version of required modules
Write-Information -MessageData 'Install modules "PSRule" and "PSRule.Rules.Azure".'
$null = Install-PSResource -Name 'PSRule', 'PSRule.Rules.Azure' -Scope 'CurrentUser' -Repository 'PSGallery' -TrustRepository -SkipDependencyCheck
from ps-rule.
Thanks for reporting the issue @o-l-a-v.
- Is this a private/ self-hosted runner or a GitHub hosted runner?
- Are you able to details from the Set up job section, including runner version, operating system, and runner image?
from ps-rule.
@o-l-a-v Thanks for the additional information.
from ps-rule.
Related Issues (20)
- 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
- Referencing PSRule main branch HOT 3
- Add release branches
- Add job summaries
- Fix summary with job summary
- Difference between PS rule and template analyzer of microsoft/security-devops-action HOT 1
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.