|
| 1 | +@page |
| 2 | +@model DevSecOpsModel |
| 3 | +@{ |
| 4 | + ViewData["Title"] = "DevSecOps & GitHub Advanced Security"; |
| 5 | +} |
| 6 | + |
| 7 | +<div class="container"> |
| 8 | + <div class="row"> |
| 9 | + <div class="col-md-12"> |
| 10 | + <h1 class="display-4 text-primary">@ViewData["Title"]</h1> |
| 11 | + <hr /> |
| 12 | + </div> |
| 13 | + </div> |
| 14 | + |
| 15 | + <div class="row"> |
| 16 | + <div class="col-md-8"> |
| 17 | + <div class="card mb-4"> |
| 18 | + <div class="card-header bg-primary text-white"> |
| 19 | + <h3 class="mb-0"><i class="bi bi-newspaper"></i> Latest GHAS News & Updates</h3> |
| 20 | + </div> |
| 21 | + <div class="card-body"> |
| 22 | + <p class="lead">Stay up-to-date with the latest GitHub Advanced Security features and enhancements:</p> |
| 23 | + |
| 24 | + @if (Model.LatestNews.Any()) |
| 25 | + { |
| 26 | + <ul class="list-group list-group-flush"> |
| 27 | + @foreach (var newsItem in Model.LatestNews) |
| 28 | + { |
| 29 | + <li class="list-group-item"> |
| 30 | + <i class="bi bi-check-circle text-success me-2"></i> |
| 31 | + @newsItem |
| 32 | + </li> |
| 33 | + } |
| 34 | + </ul> |
| 35 | + } |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + |
| 39 | + <div class="card mb-4"> |
| 40 | + <div class="card-header bg-success text-white"> |
| 41 | + <h4 class="mb-0"><i class="bi bi-shield-check"></i> DevSecOps Best Practices</h4> |
| 42 | + </div> |
| 43 | + <div class="card-body"> |
| 44 | + <div class="row"> |
| 45 | + <div class="col-md-6"> |
| 46 | + <h5>Security in Development</h5> |
| 47 | + <ul> |
| 48 | + <li>Shift-left security testing</li> |
| 49 | + <li>Automated code scanning</li> |
| 50 | + <li>Secret detection & management</li> |
| 51 | + <li>Dependency vulnerability scanning</li> |
| 52 | + </ul> |
| 53 | + </div> |
| 54 | + <div class="col-md-6"> |
| 55 | + <h5>GHAS Integration</h5> |
| 56 | + <ul> |
| 57 | + <li>CodeQL static analysis</li> |
| 58 | + <li>Dependabot alerts & updates</li> |
| 59 | + <li>Security advisories</li> |
| 60 | + <li>Supply chain protection</li> |
| 61 | + </ul> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + |
| 68 | + <div class="col-md-4"> |
| 69 | + <div class="card mb-4"> |
| 70 | + <div class="card-header bg-warning text-dark"> |
| 71 | + <h5 class="mb-0"><i class="bi bi-exclamation-triangle"></i> Demo Security Testing</h5> |
| 72 | + </div> |
| 73 | + <div class="card-body"> |
| 74 | + <p class="text-muted">This form demonstrates security vulnerabilities for educational purposes:</p> |
| 75 | + |
| 76 | + <form method="post"> |
| 77 | + <div class="mb-3"> |
| 78 | + <label for="userInput" class="form-label">Test Input:</label> |
| 79 | + <input type="text" class="form-control" id="userInput" name="userInput" |
| 80 | + value="@Model.UserInput" placeholder="Enter test data..."> |
| 81 | + <small class="form-text text-muted"> |
| 82 | + ⚠️ This input is intentionally vulnerable for demo purposes |
| 83 | + </small> |
| 84 | + </div> |
| 85 | + <button type="submit" class="btn btn-warning"> |
| 86 | + <i class="bi bi-bug"></i> Test Vulnerabilities |
| 87 | + </button> |
| 88 | + </form> |
| 89 | + |
| 90 | + @if (!string.IsNullOrEmpty(Model.UserInput)) |
| 91 | + { |
| 92 | + <div class="mt-3 alert alert-info"> |
| 93 | + <strong>Input processed:</strong> @Model.UserInput |
| 94 | + <br> |
| 95 | + <small>Check application logs for security demonstrations</small> |
| 96 | + </div> |
| 97 | + } |
| 98 | + </div> |
| 99 | + </div> |
| 100 | + |
| 101 | + <div class="card"> |
| 102 | + <div class="card-header bg-info text-white"> |
| 103 | + <h5 class="mb-0"><i class="bi bi-link-45deg"></i> GHAS Resources</h5> |
| 104 | + </div> |
| 105 | + <div class="card-body"> |
| 106 | + <div class="d-grid gap-2"> |
| 107 | + <a href="https://docs.github.com/en/code-security" target="_blank" class="btn btn-outline-primary btn-sm"> |
| 108 | + Code Security Docs |
| 109 | + </a> |
| 110 | + <a href="https://docs.github.com/en/code-security/code-scanning" target="_blank" class="btn btn-outline-primary btn-sm"> |
| 111 | + Code Scanning Guide |
| 112 | + </a> |
| 113 | + <a href="https://docs.github.com/en/code-security/secret-scanning" target="_blank" class="btn btn-outline-primary btn-sm"> |
| 114 | + Secret Scanning |
| 115 | + </a> |
| 116 | + <a href="https://docs.github.com/en/code-security/dependabot" target="_blank" class="btn btn-outline-primary btn-sm"> |
| 117 | + Dependabot |
| 118 | + </a> |
| 119 | + <a href="https://docs.github.com/en/code-security/security-advisories" target="_blank" class="btn btn-outline-primary btn-sm"> |
| 120 | + Security Advisories |
| 121 | + </a> |
| 122 | + </div> |
| 123 | + </div> |
| 124 | + </div> |
| 125 | + </div> |
| 126 | + </div> |
| 127 | + |
| 128 | + <div class="row mt-4"> |
| 129 | + <div class="col-md-12"> |
| 130 | + <div class="alert alert-warning"> |
| 131 | + <i class="bi bi-exclamation-triangle-fill"></i> |
| 132 | + <strong>Educational Demo:</strong> This page contains intentionally vulnerable code patterns for GitHub Advanced Security demonstration purposes. |
| 133 | + Never use these patterns in production environments. |
| 134 | + </div> |
| 135 | + </div> |
| 136 | + </div> |
| 137 | +</div> |
| 138 | + |
| 139 | +@section Scripts { |
| 140 | + <script> |
| 141 | + // Enhance the demo experience |
| 142 | + document.addEventListener('DOMContentLoaded', function() { |
| 143 | + const newsItems = document.querySelectorAll('.list-group-item'); |
| 144 | + newsItems.forEach((item, index) => { |
| 145 | + setTimeout(() => { |
| 146 | + item.style.opacity = '1'; |
| 147 | + item.style.transform = 'translateX(0)'; |
| 148 | + }, index * 100); |
| 149 | + }); |
| 150 | + }); |
| 151 | + </script> |
| 152 | +} |
| 153 | + |
| 154 | +<style> |
| 155 | + .list-group-item { |
| 156 | + opacity: 0; |
| 157 | + transform: translateX(-20px); |
| 158 | + transition: all 0.3s ease; |
| 159 | + } |
| 160 | + |
| 161 | + .card { |
| 162 | + box-shadow: 0 2px 10px rgba(0,0,0,0.1); |
| 163 | + transition: transform 0.2s ease; |
| 164 | + } |
| 165 | + |
| 166 | + .card:hover { |
| 167 | + transform: translateY(-2px); |
| 168 | + } |
| 169 | +</style> |
0 commit comments