Skip to content
Closed

test #68

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/dottest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ jobs:

- name: Run dotTEST analyzer
id: dottest
continue-on-error: true
# You may pin to the exact commit or the version.
# uses: tobyash86/run-dottest-analyzer-proto@1bc4be095189f455793afdb10b47127e06ae25ff
uses: tobyash86/[email protected].8a
uses: tobyash86/[email protected].10a
with:
# Path to working directory.
installDir: c:\Program Files\Parasoft\dotTEST\2021.1
config: OWASP Top 10-2017
fail: true

# ---------------------------------------------------------------
# Upload the findings into the GitHub code scanning alert section
Expand Down
7 changes: 7 additions & 0 deletions WebGoatCore/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public class Startup
{
public Startup(IConfiguration configuration, IWebHostEnvironment env)
{
try
{
var execDirectory = GetExecDirectory();

var builder = new ConfigurationBuilder();
Expand All @@ -38,6 +40,11 @@ public Startup(IConfiguration configuration, IWebHostEnvironment env)
);

NorthwindContext.Initialize(this.Configuration, env);
}
catch (Exception e)
{

}
}

private static string GetExecDirectory()
Expand Down