From 6e5df344a652488d32cbb9bd795368668b06e2e3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Dec 2025 15:58:50 +0000 Subject: [PATCH 1/2] Initial plan From 04f01e709b363c3e94986e238b3e53d7530e7106 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Dec 2025 16:06:09 +0000 Subject: [PATCH 2/2] Add DevSecOps7 page with GHAS demo features Co-authored-by: CalinL <10718943+CalinL@users.noreply.github.com> --- src/webapp01/Pages/DevSecOps7.cshtml | 181 ++++++++++++++++++++++++ src/webapp01/Pages/DevSecOps7.cshtml.cs | 107 ++++++++++++++ src/webapp01/Pages/Index.cshtml | 2 +- src/webapp01/webapp01.csproj | 2 +- 4 files changed, 290 insertions(+), 2 deletions(-) create mode 100644 src/webapp01/Pages/DevSecOps7.cshtml create mode 100644 src/webapp01/Pages/DevSecOps7.cshtml.cs diff --git a/src/webapp01/Pages/DevSecOps7.cshtml b/src/webapp01/Pages/DevSecOps7.cshtml new file mode 100644 index 0000000..01b6dba --- /dev/null +++ b/src/webapp01/Pages/DevSecOps7.cshtml @@ -0,0 +1,181 @@ +@page +@model DevSecOps7Model +@{ + ViewData["Title"] = "DevSecOps 7 - GitHub Advanced Security"; +} + +
Explore the cutting-edge features and capabilities of GitHub Advanced Security (GHAS)
+@newsItem
+ Updated: @DateTime.Now.ToString("MMM dd, yyyy") +No news available at this time.
+ } +Automated vulnerability detection using CodeQL semantic analysis engine.
+ +Detect and prevent secrets from being committed to repositories.
+Understand security impact of dependency changes in pull requests.
+ +Organization-wide security posture visibility and compliance tracking.
++ This page contains intentionally vulnerable code for demonstration purposes. + These vulnerabilities should be detected by GHAS code scanning. +
+ + + ++ Enable GitHub Advanced Security on your repositories to automatically detect the + security vulnerabilities demonstrated in this page's source code. GHAS will identify + issues like hardcoded credentials, vulnerable regex patterns, and potential log injection attacks. +
++ Learn more about implementing a comprehensive DevSecOps strategy with + GitHub Advanced Security. +
+Learn about building Web apps with ASP.NET Core.
Visit our About GHAS page to learn about GitHub Advanced Security features.
- New! Check out our DevSecOps Demo + New! Check out our DevSecOps7 Demo page to see the latest GHAS features and security demonstrations.
diff --git a/src/webapp01/webapp01.csproj b/src/webapp01/webapp01.csproj index 9b11105..f3e9796 100644 --- a/src/webapp01/webapp01.csproj +++ b/src/webapp01/webapp01.csproj @@ -13,7 +13,7 @@