Skip to content

feat(templates): add GitHub security advisory card - #292

Merged
anurag629 merged 1 commit into
codercops:devfrom
srujankaleru2007:feat/issue-279-security-advisory
Oct 28, 2026
Merged

anurag629 merged 1 commit into
codercops:devfrom
srujankaleru2007:feat/issue-279-security-advisory

Conversation

@srujankaleru2007

Copy link
Copy Markdown
Contributor

Description

Adds the GitHub Security Advisory card template with severity levels, advisory ID, affected/fixed package versions, and site branding.

Closes #279

How I Tested This

  • npm run check — passed (0 errors).
  • npm run test -- tests/templates/security-advisory.test.ts — passed (7 tests).
  • npm run test -- tests/templates/render.test.ts -t github-security-advisory — passed (3 tests).
  • Checked the GitHub editor preview and Download PNG.
  • npm run test — 1,431 passed; 5 unrelated tests timed out and Vitest reported a worker-start error.

AI Assistance

Copilot SDK in VS Code assisted with implementation and tests.

Type of Change

  • New template
  • Tests

Screenshots

Attach the default template preview screenshot.

Checklist

  • This PR targets dev
  • I was assigned the linked issue
  • npm run check passes
  • npm run test passes
  • Tested locally with npm run dev
  • Screenshot attached for this visual change
  • New template follows the Template Guidelines

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@anurag629 anurag629 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @srujankaleru2007, this works. Check, all 1464 tests and the build pass on top of dev, and the renders look right: each severity with its own pill color and readable text, an unknown severity (even constructor) falling back to High, a white background with a pale accent, long values, and blank fields with no stray separators.

@anurag629 anurag629 added the hacktoberfest-accepted PR counts for Hacktoberfest label Oct 28, 2026
@anurag629
anurag629 merged commit a115093 into codercops:dev Oct 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted PR counts for Hacktoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the Security Advisory GitHub template (github-security-advisory)

2 participants