Skip to content

fix(ci): add CRITICAL severity box fallback to learn page script - #362

Merged
ritiksah141 merged 1 commit into
devfrom
fix/learn-page-critical-severity-box
Sep 27, 2026
Merged

ritiksah141 merged 1 commit into
devfrom
fix/learn-page-critical-severity-box

Conversation

@Vishnu2707

Copy link
Copy Markdown
Collaborator

Learn page script was missing a fallback to insert the CRITICAL severity box if it's not already present in docs/learn/index.html (only HIGH/MEDIUM/LOW existed as fixed patterns before). Adds that, plus a small cleanup replacing the local sev alias with severities directly for clarity.

Small follow-on to #350, rebased on top of it.

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@Vishnu2707 Vishnu2707 self-assigned this Sep 27, 2026
ritiksah141
ritiksah141 previously approved these changes Sep 27, 2026

@ritiksah141 ritiksah141 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Approving it

Signed-off-by: Vishnu Ajith <27vishnu07@gmail.com>
@ritiksah141
ritiksah141 merged commit 5eec78a into dev Sep 27, 2026
21 checks passed
@ritiksah141
ritiksah141 deleted the fix/learn-page-critical-severity-box branch September 27, 2026 21:55
parthrohit22 pushed a commit to parthrohit22/openshield that referenced this pull request Sep 27, 2026
Resolve modify/delete conflict on .github/scripts/update_learn_page.py:
OWASP#362 refined the script's patterns, but this PR replaces the static Learn
page and its update script with build-time stats in website/src/pages/
learn.astro (which already renders the CRITICAL severity box), so the
deletion is kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MDxfYrq7uecZbnEkEesWbJ
parthrohit22 added a commit to parthrohit22/openshield that referenced this pull request Sep 27, 2026
Resolve the modify/delete conflict on .github/scripts/update_learn_page.py. OWASP#362 refined that script, but this PR replaces the static Learn page and its update script with build-time stats in website/src/pages/learn.astro, which already renders the CRITICAL severity box, so the deletion is kept.

Signed-off-by: parthrohit22 <parthrohit60@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants