79484262

Date: 2025-03-04 16:17:14
Score: 1
Natty:
Report link

I know this is an old question but google still took me here so it probably will other people.

In Powershell...

If you're on a newer version than 312, replace it with the relevant version in all of the below commands.


Scan a folder:

cd c:\example\stuffiwanttoscan\
& $env:appdata\Python\Python312\Scripts\checkov.cmd -d .

Alternatively IF you want to add it to your path statement (be conscious of not cluttering your path statement up too much) :

$env:path +=";$env:appdata\Python\Python312\Scripts\"

Once it's in your path statement (only run the above command once, not every time), then you can run checkov without prefixing it with the location every time eg:

cd c:\example\stuffiwanttoscan\
checkov -d .

(thanks to @stackuser4532's comment on the question for pointing me to the correct folder location)

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @stackuser4532's
  • Low reputation (0.5):
Posted by: AutoMattTick