Comments (9)
Based on the info in https://github.com/chef/inspec/tree/master/examples/profile, being able to specify path names either local paths or local git repo (bitbucket/stash) would be helpful. We don't use github for our vcs.
from kitchen-inspec.
@rndmh3ro This is not restricted to kitchen-inspec
and is expected behaviour in test-kitchen. Test directories are determined by test/integration/%suite-name%
.
As highlighted in my response in dev-sec/ansible-ssh-hardening#61, I propose we use real InSpec profiles for the test suites and remote profiles in combination with kitchen-inspec
.
suites:
- name: default
run_list:
- recipe[ssh-hardening::default]
verifier:
inspec_tests:
- https://github.com/hardening-io/tests-ssh-hardening/tree/2.0
from kitchen-inspec.
My employer has enterprise github. I would like to have Inspec tests stored in separate audit cookbooks
and pull them from github.mycompany.com ... kitchen-inspec only works if https://github.com/ is the beginning of the URL (from what I can discern...)
from kitchen-inspec.
You can easily pass a path:
suites:
- name: default
run_list:
- recipe[ssh-hardening::default]
verifier:
inspec_tests:
- /path/to/profile
@jcii right now, InSpec only understands github url, but we could find a way to make that happen. The only piece that needs some adaption is: https://github.com/chef/inspec/blob/master/lib/fetchers/url.rb Therefore it is not a limitation of kitchen-inspec, but inspec.
from kitchen-inspec.
@chris-rock I`m wondering to know is that possible to use bitbucket insted of github?
from kitchen-inspec.
@aidda Yes we have bitbucket support, although it is not well documented yet. Please help us to make it better! You can see possible urls here: https://github.com/chef/inspec/blob/master/lib/fetchers/url.rb#L46-L63
from kitchen-inspec.
@chris-rock I was checking this link yesterday ;) and add bitbucket url in kitchen-inspec. it was working perefctly. I`ll update the documents! thanks
from kitchen-inspec.
Awesome. Thank you @aidda
from kitchen-inspec.
It appears this issue is resolved, and the generic url
fetcher can be used to pull a .tar.gz file from an enterprise github if needed (just navigate to the "releases" section of the repo to find the exact URL you need).
from kitchen-inspec.
Related Issues (20)
- Expeditor cannot find agent for inspec/kitchen-inspec HOT 6
- Enable the ability to pass a inspec `config.yml` file to kitchen
- Incorrect lower bound specification for `inspec` dependency HOT 2
- 'junit' is not a valid reporter type in chef workstation 20.9.136 HOT 5
- Error when using plugin-based reporters and multiple instances HOT 1
- WinRM execution expired (HTTPClient::ConnectTimeoutError)
- inspec array input treated as hash w/ keys HOT 1
- junit(2) is not a valid reporter type HOT 2
- v2.4.0 Regression: reporters HOT 1
- 'aws_lambda' resource not identified
- Lifecycle Hooks Do Not Fire If InSpec Tests Fail HOT 1
- Dependabot can't resolve your Ruby dependency files
- kitchen verify fails on Windows HOT 1
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Documentation needs to be moved to https://kitchen.ci/docs/verifiers/inspec/
- Waivers file is not used HOT 4
- add support for inspec 6.6.0, updated reporters and config options
- add the ability to pass any inspec --'flags' to the verifier - such as 'enhanced-outcomes' or any that we add in the future HOT 1
- Kitchen verify return code zero with client error 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 kitchen-inspec.