Skip to content

Commit fd2abce

Browse files
committed
feat: Implement DevSecOps page and add logger
1 parent f2260ab commit fd2abce

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@page
2+
@model DevSecOpsModel
3+
@{
4+
ViewData["Title"] = "DevSecOps";
5+
}
6+
7+
<h1>@ViewData["Title"]</h1>
8+
9+
<p>Stay up-to-date with the latest advancements in GitHub Advanced Security.</p>
10+
11+
<h2>Latest News</h2>
12+
<div class="card-deck">
13+
<div class="card">
14+
<div class="card-body">
15+
<h5 class="card-title">GitHub Universe 2025 Highlights</h5>
16+
<p class="card-text">Discover the key announcements from GitHub Universe 2025, including new features for Advanced Security that help you build more secure applications.</p>
17+
<a href="#" class="btn btn-primary">Read More</a>
18+
</div>
19+
<div class="card-footer">
20+
<small class="text-muted">Posted on May 8, 2025</small>
21+
</div>
22+
</div>
23+
<div class="card">
24+
<div class="card-body">
25+
<h5 class="card-title">Secret Scanning Enhancements</h5>
26+
<p class="card-text">Learn about the latest improvements to secret scanning, including expanded partner patterns and new detection capabilities to keep your secrets safe.</p>
27+
<a href="#" class="btn btn-primary">Read More</a>
28+
</div>
29+
<div class="card-footer">
30+
<small class="text-muted">Posted on April 25, 2025</small>
31+
</div>
32+
</div>
33+
<div class="card">
34+
<div class="card-body">
35+
<h5 class="card-title">CodeQL Gets Faster and Smarter</h5>
36+
<p class="card-text">Explore the performance and intelligence upgrades to CodeQL, enabling faster and more accurate security analysis of your codebases.</p>
37+
<a href="#" class="btn btn-primary">Read More</a>
38+
</div>
39+
<div class="card-footer">
40+
<small class="text-muted">Posted on April 10, 2025</small>
41+
</div>
42+
</div>
43+
</div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
public class DevSecOpsModel : PageModel
5+
{
6+
public void OnGet()
7+
{
8+
}
9+
}

src/webapp01/Pages/Index.cshtml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@
1111
<p class="card-text">Visit our <a asp-page="/About">About GHAS</a> page to learn about GitHub Advanced Security features.</p>
1212
</div>
1313
</div>
14+
15+
<div class="row">
16+
<div class="col-md-4">
17+
<h2>DevSecOps</h2>
18+
<p>Learn about the latest in DevSecOps and GitHub Advanced Security.</p>
19+
<p><a class="btn btn-secondary" asp-page="/DevSecOps">Explore DevSecOps &raquo;</a></p>
20+
</div>
21+
</div>

src/webapp01/webapp01.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<PackageReference Include="Azure.Identity" Version="1.13.2" />
1414
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.2" />
1515
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
16+
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
1617
<PackageReference Include="System.Text.Json" Version="9.0.4" />
1718
</ItemGroup>
1819

0 commit comments

Comments
 (0)