From e8e5f319e87e77c8b49a39dbf4a8ced42e07366f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 20:11:28 +0000 Subject: [PATCH 1/3] Initial plan From 742f7f2ab516ba54916b4c3268baf671aec02f71 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 20:15:48 +0000 Subject: [PATCH 2/3] Add DevSecOps-2649 demo page with GHAS features and intentional vulnerabilities Co-authored-by: CalinL <10718943+CalinL@users.noreply.github.com> --- src/webapp01/Pages/DevSecOps-2649.cshtml | 358 ++++++++++++++++++++ src/webapp01/Pages/DevSecOps-2649.cshtml.cs | 270 +++++++++++++++ src/webapp01/Pages/Index.cshtml | 4 + src/webapp01/webapp01.csproj | 2 +- 4 files changed, 633 insertions(+), 1 deletion(-) create mode 100644 src/webapp01/Pages/DevSecOps-2649.cshtml create mode 100644 src/webapp01/Pages/DevSecOps-2649.cshtml.cs diff --git a/src/webapp01/Pages/DevSecOps-2649.cshtml b/src/webapp01/Pages/DevSecOps-2649.cshtml new file mode 100644 index 0000000..18fa37d --- /dev/null +++ b/src/webapp01/Pages/DevSecOps-2649.cshtml @@ -0,0 +1,358 @@ +@page +@model DevSecOps2649Model +@{ + ViewData["Title"] = "DevSecOps Demo 2649 - Latest GHAS Features"; +} + +
Explore the newest GitHub Advanced Security features and security demonstrations
+@news.Description
+ Category: @news.Category +No security updates available.
+ } ++ This page's backend contains hardcoded database credentials that should be detected by GHAS secret scanning. +
+Integrate security scanning early in the development lifecycle, enabling developers to identify and fix vulnerabilities before they reach production.
+ +Implement automated checks in CI/CD pipelines to block PRs with critical vulnerabilities or exposed secrets.
+ +Use GHAS findings as teaching moments to improve team security awareness and coding practices.
+Create organization-specific CodeQL queries to detect patterns unique to your codebase and compliance requirements.
+ +Enable real-time security scanning on all branches to catch issues immediately as code is committed.
+ +Leverage security advisories and automated notifications to rapidly respond to newly disclosed vulnerabilities.
++ This DevSecOps demo page (ID: 2649) showcases the power of GitHub Advanced Security by deliberately + including security anti-patterns and vulnerabilities. When GHAS code scanning is enabled, it will + automatically detect and alert on these issues, demonstrating the platform's capability to identify: +
++ Note: All vulnerabilities on this page are intentional and for demonstration purposes only. + Never deploy code with these patterns to production environments. +
++ 🚀 Latest! Explore our newest DevSecOps Demo 2649 + featuring the most recent GitHub Advanced Security updates and interactive vulnerability 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 @@