question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add cli switch to inspect a file

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
schosterbarakcommented, Jan 11, 2020

Hey @rpdelaney, I’ve just pushed a commit to solve this one: https://github.com/bridgecrewio/checkov/pull/53 Should work now 😃

1reaction
schosterbarakcommented, Jan 4, 2020

Thank you @rpdelaney . Re-opening then. We would love a contribution in that area!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found