Skip to content

Commit 9bac76b

Browse files
authored
Merge pull request #59 from githubabcs-devops/feature/about-page
Add About page and update navigation to include GHAS information
2 parents 9dcf1a9 + e7cd762 commit 9bac76b

File tree

4 files changed

+87
-0
lines changed

4 files changed

+87
-0
lines changed

src/webapp01/Pages/About.cshtml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
@page
2+
@model AboutModel
3+
@{
4+
ViewData["Title"] = "About GitHub Advanced Security";
5+
}
6+
7+
<div class="container">
8+
<h1>@ViewData["Title"]</h1>
9+
<hr />
10+
11+
<div class="row">
12+
<div class="col-md-8">
13+
<h2>What is GitHub Advanced Security (GHAS)?</h2>
14+
<p>
15+
GitHub Advanced Security (GHAS) is a suite of security features that help you identify and fix vulnerabilities in your code.
16+
It provides tools to improve your security posture and protect your software development lifecycle.
17+
</p>
18+
19+
<h3>Key Features of GHAS:</h3>
20+
<ul>
21+
<li>
22+
<strong>Code Scanning:</strong> Automatically identify vulnerabilities in your code using CodeQL, the semantic code analysis engine.
23+
</li>
24+
<li>
25+
<strong>Secret Scanning:</strong> Detect secrets and credentials committed to your repositories.
26+
</li>
27+
<li>
28+
<strong>Dependency Review:</strong> Get insights about dependency changes and their security impact when reviewing pull requests.
29+
</li>
30+
<li>
31+
<strong>Dependabot:</strong> Receive automatic alerts and pull requests to update vulnerable dependencies.
32+
</li>
33+
<li>
34+
<strong>Security Overview:</strong> Get a comprehensive view of your security alerts across repositories and organizations.
35+
</li>
36+
</ul>
37+
38+
<h3>Benefits</h3>
39+
<p>
40+
With GitHub Advanced Security, teams can:
41+
</p>
42+
<ul>
43+
<li>Find security vulnerabilities before they reach production</li>
44+
<li>Shift security left in the development lifecycle</li>
45+
<li>Meet compliance requirements with built-in reports</li>
46+
<li>Automate security checks in CI/CD pipelines</li>
47+
<li>Reduce the risk of data breaches and security incidents</li>
48+
</ul>
49+
50+
<p>
51+
Learn more about GHAS at <a href="https://github.com/features/security" target="_blank">GitHub's security features page</a>.
52+
</p>
53+
</div>
54+
55+
<div class="col-md-4">
56+
<div class="card">
57+
<div class="card-header bg-primary text-white">
58+
<h4 class="mb-0">GHAS Resources</h4>
59+
</div>
60+
<div class="card-body">
61+
<ul class="list-unstyled">
62+
<li><a href="https://docs.github.com/en/code-security" target="_blank">GitHub Code Security Documentation</a></li>
63+
<li><a href="https://docs.github.com/en/code-security/code-scanning" target="_blank">Code Scanning Documentation</a></li>
64+
<li><a href="https://docs.github.com/en/code-security/secret-scanning" target="_blank">Secret Scanning Documentation</a></li>
65+
<li><a href="https://docs.github.com/en/code-security/dependabot" target="_blank">Dependabot Documentation</a></li>
66+
</ul>
67+
</div>
68+
</div>
69+
</div>
70+
</div>
71+
</div>

src/webapp01/Pages/About.cshtml.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
using Microsoft.AspNetCore.Mvc.RazorPages;
3+
4+
namespace webapp01.Pages
5+
{
6+
public class AboutModel : PageModel
7+
{
8+
public void OnGet()
9+
{
10+
}
11+
}
12+
}

src/webapp01/Pages/Index.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
<div class="card-body">
99
<h5 class="card-title">.NET 💜 Azure v4</h5>
1010
<p class="card-text">Learn about <a href="https://learn.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
11+
<p class="card-text">Visit our <a asp-page="/About">About GHAS</a> page to learn about GitHub Advanced Security features.</p>
1112
</div>
1213
</div>

src/webapp01/Pages/Shared/_Layout.cshtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
<li class="nav-item">
2424
<a class="nav-link text-dark" asp-area="" asp-page="/Index">Home</a>
2525
</li>
26+
<li class="nav-item">
27+
<a class="nav-link text-dark" asp-area="" asp-page="/About">About GHAS</a>
28+
</li>
2629
<li class="nav-item">
2730
<a class="nav-link text-dark" asp-area="" asp-page="/Privacy">Privacy</a>
2831
</li>

0 commit comments

Comments
 (0)