chef / effortless

Automated best practices for Chef Infra and Chef InSpec
https://chef.io
Apache License 2.0
33 stars 38 forks source link

Inspec scaffolding not working on linux when fetching profiles from Automate #262

Closed collinmcneese closed 3 years ago

collinmcneese commented 3 years ago

Description

When using a single profile with scaffolding-chef-inspec and attempting to fetch compliance profiles from Chef Automate, the build fails because it is unable to process the profile_dir.

Scaffolding Version

0.22.0

Platform Version

Linux

Replication Case

Build or Run Output

mkdir: created directory '/hab/cache/src'
   inspec_audit_tst: Clean the cache
   inspec_audit_tst: Setting build environment
   inspec_audit_tst: Setting PREFIX=/hab/pkgs/collinmcneese/inspec_audit_tst/0.1.1/20201211160524
   inspec_audit_tst: Setting LD_RUN_PATH=
   inspec_audit_tst: Setting CFLAGS=
   inspec_audit_tst: Setting CXXFLAGS=
   inspec_audit_tst: Setting CPPFLAGS=
   inspec_audit_tst: Setting LDFLAGS=
   inspec_audit_tst: Setting PKG_CONFIG_PATH=
   inspec_audit_tst: Preparing to build
   inspec_audit_tst: Building

Cannot fetch compliance://admin/ssh-baseline because your compliance token has not been
configured.

Please login using

    inspec compliance login https://your_compliance_server --user admin --insecure --token 'PASTE TOKEN HERE' 
   inspec_audit_tst: Build time: 0m25s
   inspec_audit_tst: Exiting on error
collinmcneese commented 3 years ago

@sam1el

sam1el commented 3 years ago

Thanks collin