Giter Site home page Giter Site logo

Comments (4)

o-l-a-v avatar o-l-a-v commented on July 18, 2024 1

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.

o-l-a-v avatar o-l-a-v commented on July 18, 2024

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.

BernieWhite avatar BernieWhite commented on July 18, 2024

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.

BernieWhite avatar BernieWhite commented on July 18, 2024

@o-l-a-v Thanks for the additional information.

from ps-rule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.