From 3a8d3b037bd75fe86290128b11da4d0914dfac10 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 05:09:05 +0000 Subject: [PATCH 1/2] Initial plan From 8725935cbbbc49891b10af556eba1c43dcbfdabc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 05:12:18 +0000 Subject: [PATCH 2/2] feat: Add DevSecOps-7809 demo page with intentional vulnerabilities for GHAS demonstration Co-authored-by: CalinL <10718943+CalinL@users.noreply.github.com> --- src/webapp01/Pages/DevSecOps-7809.cshtml | 265 ++++++++++++++++++++ src/webapp01/Pages/DevSecOps-7809.cshtml.cs | 239 ++++++++++++++++++ src/webapp01/Pages/Index.cshtml | 10 +- src/webapp01/webapp01.csproj | 2 +- 4 files changed, 513 insertions(+), 3 deletions(-) create mode 100644 src/webapp01/Pages/DevSecOps-7809.cshtml create mode 100644 src/webapp01/Pages/DevSecOps-7809.cshtml.cs diff --git a/src/webapp01/Pages/DevSecOps-7809.cshtml b/src/webapp01/Pages/DevSecOps-7809.cshtml new file mode 100644 index 0000000..509ca46 --- /dev/null +++ b/src/webapp01/Pages/DevSecOps-7809.cshtml @@ -0,0 +1,265 @@ +@page +@model DevSecOps7809Model +@{ + ViewData["Title"] = "DevSecOps Demo 7809 - GitHub Advanced Security"; +} + +
Latest developments in GitHub Advanced Security and DevSecOps practices
+@newsItem.Description
+ Published: @newsItem.Date.ToString("MMMM dd, yyyy") +No news available at this time.
+ } +Next-generation CodeQL powered by machine learning for improved accuracy and reduced false positives.
+Real-time secret scanning with AI-based pattern detection and automatic remediation suggestions.
+Enhanced SBOM generation, dependency attestation, and provenance tracking for complete supply chain visibility.
+GitHub Copilot integration for automated security fix suggestions and pull request generation.
++ ⚠️ WARNING: This page contains intentionally vulnerable code for educational purposes. +
++ The backend code includes common security vulnerabilities that should be detected by GitHub Advanced Security: +
+1.2M+
+14 days
++ This page demonstrates how GitHub Advanced Security can detect common security vulnerabilities + in ASP.NET Core applications. The intentional vulnerabilities included here should trigger + alerts in GHAS code scanning, providing practical examples of security issues. +
++ Learn more: Visit the About GHAS page to understand + how to enable and configure GitHub Advanced Security for your repositories. +
+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 - page to see the latest GHAS features and security demonstrations. + New! Check out our DevSecOps demo pages: +
++ DevSecOps Demo + DevSecOps Demo 7809 +
++ Explore the latest GHAS features and security demonstrations with intentional vulnerabilities for educational purposes.
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 @@