Code Monkey home page Code Monkey logo

chef-install's Introduction

actionshub

A metadata repository to hold issues and thoughts for the org

chef-install's People

Contributors

chrisminton avatar damacus avatar dayne avatar detjensrobert avatar ocoster-is avatar renovate[bot] avatar xorima avatar zelaskov avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chef-install's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/generic-linters.yml
  • actions/checkout v4
  • actions/checkout v4
npm
package.json
  • @actions/core >=1.2.6
  • @actions/exec ^1.0.2
  • os ^0.1.1

  • Check this box to trigger a request for Renovate to run again on this repository

uninitialized constant ActiveSupport

๐Ÿ‘ป Brief Description

I'm using this action to test Terraform modules and it has been working fine until I added a new module to test. I then tested existing untouched modules to find they were also failing to run inspec tests. I can run Inpsec exec and accept license but it fails to run tests

๐Ÿฅž Action version

actionshub/[email protected]

๐ŸŽฉ workflow configuration

name: Terraform-CI

on:
  # Triggers the workflow on pull request events
  pull_request:
    branches: [ '*' ]

  workflow_dispatch:

jobs:
  terraform:
    name: Terraform CI
    runs-on: ubuntu-latest
    env:
      ARM_CLIENT_ID: ${{ secrets.AZURE_MODULE_CLIENT_ID }}
      ARM_CLIENT_SECRET: ${{ secrets.AZURE_MODULE_CLIENT_SECRET }}
      ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_MODULE_SUBSCRIPTION_ID }}
      ARM_TENANT_ID: ${{ secrets.AZURE_MODULE_TENANT_ID }}
      AZURE_CLIENT_ID: ${{ secrets.AZURE_MODULE_CLIENT_ID }}
      AZURE_CLIENT_SECRET: ${{ secrets.AZURE_MODULE_CLIENT_SECRET }}
      AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_MODULE_SUBSCRIPTION_ID }}
      AZURE_TENANT_ID: ${{ secrets.AZURE_MODULE_TENANT_ID }}

    steps:
      - name: Clone repo
        uses: actions/checkout@main

      - name: HashiCorp - Setup Terraform
        uses: hashicorp/[email protected]
        
      - name: Install Inspec 
        uses: actionshub/[email protected]

      - name: Terraform fmt
        id: fmt
        run: terraform fmt -check
        continue-on-error: true

      #### Basic Tests
      - name: Terraform Init Basic
        id: init_basic
        run: | 
          cd tests/basic
          terraform init

      - name: Terraform Plan Basic
        id: plan_basic
        run: | 
          cd tests/basic
          terraform plan
          
      - name: Terraform Apply Basic
        id: apply_basic
        run: | 
          cd tests/basic
          terraform apply --auto-approve

      - name: Inspec Scan Basic
        id: inspec_basic
        run: | 
          inspec exec tests/basic/azure-inspec-tests --chef-license accept -t azure://
        continue-on-error: true

      - name: Terraform Destroy Basic
        id: destroy_basic
        run: | 
          cd tests/basic
          terraform destroy --auto-approve

Steps To Reproduce

  1. Go to 'Actions'
  2. Click on desired workflow
  3. Click run workflow
  4. Error:
Run inspec exec tests/basic/azure-inspec-tests --chef-license accept -t azure://
+---------------------------------------------+
โœ” 1 product license accepted.
+---------------------------------------------+
/opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0/lib/active_support/xml_mini.rb:184:in `current_thread_backend': uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState (NameError)
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0/lib/active_support/xml_mini.rb:103:in `backend='
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0/lib/active_support/xml_mini.rb:201:in `<module:ActiveSupport>'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0/lib/active_support/xml_mini.rb:11:in `<top (required)>'
	from <internal:/opt/chef-workstation/embedded/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/opt/chef-workstation/embedded/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0/lib/active_support/core_ext/hash/conversions.rb:3:in `<top (required)>'
	from <internal:/opt/chef-workstation/embedded/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/opt/chef-workstation/embedded/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0/lib/active_support/core_ext/hash.rb:3:in `<top (required)>'
	from <internal:/opt/chef-workstation/embedded/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/opt/chef-workstation/embedded/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/dsl_shared.rb:33:in `require'
	from libraries/backend/azure_require.rb:8:in `create'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/dsl_shared.rb:47:in `eval'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/dsl_shared.rb:47:in `require'
	from libraries/azure_backend.rb:1:in `create'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/dsl_shared.rb:47:in `eval'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/dsl_shared.rb:47:in `require'
	from libraries/azure_graph_generic_resource.rb:1:in `create'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/dsl_shared.rb:47:in `eval'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/dsl_shared.rb:47:in `require'
	from libraries/azure_active_directory_domain_service.rb:1:in `load_with_context'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile_context.rb:170:in `instance_eval'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile_context.rb:170:in `load_with_context'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile_context.rb:159:in `load_library_file'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile_context.rb:144:in `block in load_libraries'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile_context.rb:143:in `each'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile_context.rb:143:in `load_libraries'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile.rb:376:in `load_libraries'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile.rb:369:in `block in load_libraries'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile.rb:350:in `each'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile.rb:350:in `each_with_index'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/profile.rb:350:in `load_libraries'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/runner.rb:108:in `block in load'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/runner.rb:102:in `each'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/runner.rb:102:in `load'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/runner.rb:136:in `run'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/cli.rb:304:in `exec'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-core-4.52.9/lib/inspec/base_cli.rb:35:in `start'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/inspec-bin-4.52.9/bin/inspec:11:in `<top (required)>'
	from /usr/bin/inspec:380:in `load'
	from /usr/bin/inspec:380:in `<main>'
Error: Process completed with exit code 1.

๐Ÿš“ Expected behavior

Inspec to run control tests and report pass or failure

โž• Additional context

I tested with another action azure_compliance_action and had the same problem so I believe something may have changed upstream with Inspec

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.