diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3aa1d50..dd13268 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -16,3 +16,8 @@ updates: schedule: interval: weekly open-pull-requests-limit: 15 + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every weekday + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index cd285fb..cfd2952 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -67,7 +67,7 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + queries: security-and-quality # If the analyze step fails for one of the languages you are analyzing with # "We were unable to automatically build your code", modify the matrix above diff --git a/gh-aspnet-webapp-01.sln b/gh-aspnet-webapp-01.sln new file mode 100644 index 0000000..93aa565 --- /dev/null +++ b/gh-aspnet-webapp-01.sln @@ -0,0 +1,29 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "webapp01", "src\webapp01\webapp01.csproj", "{F2764B25-696E-F627-F6C5-7B44C866BCFE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F2764B25-696E-F627-F6C5-7B44C866BCFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F2764B25-696E-F627-F6C5-7B44C866BCFE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F2764B25-696E-F627-F6C5-7B44C866BCFE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F2764B25-696E-F627-F6C5-7B44C866BCFE}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {F2764B25-696E-F627-F6C5-7B44C866BCFE} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7851C106-5284-4807-BCEF-4B450A66CF69} + EndGlobalSection +EndGlobal diff --git a/src/webapp01/Pages/Index.cshtml.cs b/src/webapp01/Pages/Index.cshtml.cs index bad929d..43f75a7 100644 --- a/src/webapp01/Pages/Index.cshtml.cs +++ b/src/webapp01/Pages/Index.cshtml.cs @@ -10,6 +10,12 @@ public class IndexModel : PageModel public IndexModel(ILogger logger) { _logger = logger; + + string drive = Request.Query.ContainsKey("drive") ? Request.Query["drive"] : "C"; + + var str = $"/C fsutil volume diskfree {drive}:"; + + _logger.LogInformation($"Command str: {str}"); } public void OnGet() diff --git a/src/webapp01/webapp01.csproj b/src/webapp01/webapp01.csproj index 6568b3d..1fc9d21 100644 --- a/src/webapp01/webapp01.csproj +++ b/src/webapp01/webapp01.csproj @@ -6,4 +6,9 @@ enable + + + + +