Add cli switch to inspect a file
See original GitHub issueIs your feature request related to a problem? Please describe.
We would like to use checkov
in conjunction with pre-commit so that infra engineers can be notified of misconfigurations locally (and before checkov
is executed in CI).
However, it seems checkov
can only be run on directories. That means we cannot adopt this workflow without running static analysis on every terraform file in the repo every time we make a commit with any terraform changes – or, at best, every terraform file that shares a path with any terraform file being committed.
Describe the solution you’d like
A command-line switch such as -f
or --file
that accepts a path to an individual file to be analyzed.
Describe alternatives you’ve considered N/A
Additional context N/A
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Update Configuration Files on a Switch through the CLI - Cisco
This article is a general guide to updating switch configuration files via CLI.
Read more >Command-line switches for Microsoft Office products
Use command-line switches to customize the startup process for Microsott Office programs: Word, Excel, PowerPoint, Outlook, and Access.
Read more >Unable to load "rails c" (error: "Switch to inspect mode") from ...
EDIT: The question is, how to I "switch to inspect mode"? ... (file, settings, external tools), I have cleverly added a command line...
Read more >List of Chromium Command Line Switches - Peter Beverloo
List of Chromium Command Line Switches. There are lots of command lines which can be used with the Google Chrome browser. Some change...
Read more >How do I find out command line arguments of a running ...
Right click on any column and select "Show Columns" and then check "Command Line Arguments" option > Click OK. Then select the process...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @rpdelaney, I’ve just pushed a commit to solve this one: https://github.com/bridgecrewio/checkov/pull/53 Should work now 😃
Thank you @rpdelaney . Re-opening then. We would love a contribution in that area!