sonatype-nexus-community / DevAudit

Open-source, cross-platform, multi-purpose security auditing tool
BSD 3-Clause "New" or "Revised" License
360 stars 74 forks source link

Impossible to ran DevAudit from TFS Agent #138

Open llotall opened 4 years ago

llotall commented 4 years ago

Trying to Run devaudit command from under the TFS agent and get Exception message.

v3.4.0.20
Runtime error! DevAudit will now terminate.

Unhandled Exception: System.IO.IOException: The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.Console.set_CursorVisible(Boolean value)
   at DevAudit.CommandLine.Program.Main(String[] args) in D:\a\1\s\DevAudit.CommandLine\Program.cs:line 663

I use azure pipline task steps:

But when i use the same command locally on my work machine all is good

llotall commented 4 years ago

Resolved this Issue. I just forgot add -n (non interactive flag)

PLEASE! Add more informative exception messages with error assumptions. This will improve the interaction with devAudit tool. In my case you can show message like (Please check possible reasons of error:

Thank you in advance!

ken-duck commented 3 years ago

Thanks for the heads up. I will look into improving the error messaging, but I wonder if it would just be better to run by default in non-interactive mode. It does not really add that much to the experience.