In InSpec 1.9.0 I defined the following profile with dependency, including all controls from the dependent profile.
However, when executing I get the error indicating the profile "is not listed as dependency"
What am I missing?
inspec.yml
:name: my-profile version: 0.0.1 supports: - os-family: unix depends: - name: ssh-baseline url: https://github.com/dev-sec/ssh-baseline/archive/master.zip
controls/include_ssh_baseline.rb
:include_controls 'ssh-baseline'
Command:
inspec exec my-profile -t ssh://user@host.domain
The result of executing the profile:
Cannot load ssh-baseline since it is not listed as a dependency
of my-profile.Dependencies available from this context are:
(two empty lines)
I don't see a syntax error. It's almost copy-paste example from InSpec Profiles page.
The following dependency definition (git
instead of url
) also caused the same error message as above:
depends:
- name: ssh-baseline
git: https://github.com/dev-sec/ssh-baseline.git