Skip to content

feat: add security finding issue template - #3

Open
Timur Tukaev (tym83) wants to merge 3 commits into
cozystack:mainfrom
tym83:feat/security-issue-template
Open

Timur Tukaev (tym83) wants to merge 3 commits into
cozystack:mainfrom
tym83:feat/security-issue-template

Conversation

@tym83

@tym83 Timur Tukaev (tym83) commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a standard issue template for security findings (ISSUE_TEMPLATE/security-finding.yml).

This template is used by maintainers to track scanner findings with structured fields: CVE ID, severity, affected package, components, triage status.

Reporters of new vulnerabilities should use Private Vulnerability Reporting instead.

Fields

  • CVE ID, severity, package, versions
  • Affected Cozystack components
  • Triage status (new / confirmed / false-positive / accepted-risk / in-progress / fixed)
  • References

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Added a standardized "Security Finding" issue template for reporting scanner findings: includes a prefilled title prefix and default security label, required fields for CVE ID, severity, affected package(s) and components, and vulnerability description, optional fields for installed/fixed versions and references, and a required triage-status dropdown with predefined workflow states.

@coderabbitai

coderabbitai Bot commented Apr 6, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 232ac58d-2f16-4f09-8036-e76c0ca8e8b5
📝 Walkthrough

Walkthrough

A new GitHub issue template ISSUE_TEMPLATE/security-finding.yml was added to collect automated security scanner findings with prefilled title prefix, default label, required CVE, severity, affected package/components, description, optional version/references, and a triage status dropdown.

Changes

Cohort / File(s) Summary
Security Issue Template
ISSUE_TEMPLATE/security-finding.yml
Adds a new "Security Finding" issue template: prefills title with [security] , applies security/triage-needed label, includes required fields (CVE ID, severity dropdown: Critical/High/Medium/Low, affected package, affected components, vulnerability description), optional fields (installed/fixed versions, references), and a required triage status dropdown (new, confirmed, false-positive, accepted-risk, in-progress, fixed).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: add security finding issue template' directly and accurately describes the main change: adding a new security finding issue template file (ISSUE_TEMPLATE/security-finding.yml).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new GitHub issue template, security-finding.yml, designed for maintainers to report automated security scanner findings. The template includes structured fields for vulnerability details, affected components, and triage status. Feedback suggests enhancing the default title format for better consistency and renaming the CVE ID field to a more generic Vulnerability ID to support a wider range of security identifiers such as GHSA.

Comment thread ISSUE_TEMPLATE/security-finding.yml Outdated
@@ -0,0 +1,81 @@
name: Security Finding
description: Report an automated security scanner finding (for maintainers)
title: "[security] "

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The default title [security] is very minimal. Providing a suggested format in the title field can help maintainers create consistent and searchable issue titles across the repository.

title: "[security] <package>: <vulnerability ID>"

Comment on lines +11 to +17
- type: input
id: cve
attributes:
label: CVE ID
placeholder: CVE-YYYY-NNNNN
validations:
required: true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The cve field is mandatory, but not all security findings have a CVE ID (e.g., they might have a GHSA ID or be an internal finding). It is better to use a more inclusive label like 'Vulnerability ID' and update the placeholder to reflect this. I also suggest renaming the ID to vulnerability_id for clarity.

  - type: input
    id: vulnerability_id
    attributes:
      label: Vulnerability ID
      placeholder: "e.g., CVE-YYYY-NNNNN or GHSA-xxxx-xxxx-xxxx"
    validations:
      required: true

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
ISSUE_TEMPLATE/security-finding.yml (1)

29-69: Add scanner and finding-ID fields for triage traceability.

This will make deduping and audit trails much easier across repeated scanner runs.

Suggested addition
   - type: input
+    id: scanner
+    attributes:
+      label: Scanner source
+      placeholder: "e.g., Trivy, Grype, Dependabot, osv-scanner"
+    validations:
+      required: true
+  - type: input
+    id: finding_id
+    attributes:
+      label: Scanner finding ID (if available)
+      placeholder: "e.g., advisory ID / rule ID / alert URL"
+  - type: input
     id: package
     attributes:
       label: Affected package
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ISSUE_TEMPLATE/security-finding.yml` around lines 29 - 69, Add two new form
fields to the security-finding template to capture scanner metadata: an input
field with id "scanner" (attributes.label: Scanner, placeholder e.g.,
"Trivy/Ghsa/OSV") and an input field with id "finding_id" (attributes.label:
Finding ID, placeholder e.g., "scanner-specific id or hash") so triage and
deduping are possible; mark both with validations.required: true (and keep them
alongside the existing fields such as "package", "installed_version",
"fixed_version", "affected_components", and "description") and ensure their ids
("scanner" and "finding_id") are unique in the YAML so downstream tooling can
reliably reference them.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@ISSUE_TEMPLATE/security-finding.yml`:
- Line 10: The template currently hardcodes the private reporting URL
"https://github.com/cozystack/cozystack/security/advisories/new", which can
misroute disclosures if the template is reused; update the line referencing
"Private Vulnerability Reporting" to use repo-agnostic wording such as "use this
repository's Security → Advisories" or explicitly state that submissions should
go to a centralized intake, and replace the hardcoded URL with either a relative
instruction or a configurable placeholder so the advisory destination is not
tied to cozystack/cozystack.

---

Nitpick comments:
In `@ISSUE_TEMPLATE/security-finding.yml`:
- Around line 29-69: Add two new form fields to the security-finding template to
capture scanner metadata: an input field with id "scanner" (attributes.label:
Scanner, placeholder e.g., "Trivy/Ghsa/OSV") and an input field with id
"finding_id" (attributes.label: Finding ID, placeholder e.g., "scanner-specific
id or hash") so triage and deduping are possible; mark both with
validations.required: true (and keep them alongside the existing fields such as
"package", "installed_version", "fixed_version", "affected_components", and
"description") and ensure their ids ("scanner" and "finding_id") are unique in
the YAML so downstream tooling can reliably reference them.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a203d79c-f5c9-41c7-a7c6-8753b3bed468

📥 Commits

Reviewing files that changed from the base of the PR and between 491e776 and 5d2ce2f.

📒 Files selected for processing (1)
  • ISSUE_TEMPLATE/security-finding.yml

Comment thread ISSUE_TEMPLATE/security-finding.yml Outdated
attributes:
value: |
**This template is for automated scanner findings reviewed by maintainers.**
If you are an external reporter, please use [Private Vulnerability Reporting](https://github.com/cozystack/cozystack/security/advisories/new) instead.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Hardcoded private-report URL can misroute security disclosures.

If this template is reused outside cozystack/cozystack, reporters may submit to the wrong advisory destination. Prefer repo-agnostic wording (e.g., “use this repository’s Security → Advisories”) or clearly state centralized intake is intentional.

Suggested edit
-        If you are an external reporter, please use [Private Vulnerability Reporting](https://github.com/cozystack/cozystack/security/advisories/new) instead.
+        If you are an external reporter, please use this repository’s **Private Vulnerability Reporting** flow from the Security tab.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
If you are an external reporter, please use [Private Vulnerability Reporting](https://github.com/cozystack/cozystack/security/advisories/new) instead.
If you are an external reporter, please use this repository's **Private Vulnerability Reporting** flow from the Security tab.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ISSUE_TEMPLATE/security-finding.yml` at line 10, The template currently
hardcodes the private reporting URL
"https://github.com/cozystack/cozystack/security/advisories/new", which can
misroute disclosures if the template is reused; update the line referencing
"Private Vulnerability Reporting" to use repo-agnostic wording such as "use this
repository's Security → Advisories" or explicitly state that submissions should
go to a centralized intake, and replace the hardcoded URL with either a relative
instruction or a configurable placeholder so the advisory destination is not
tied to cozystack/cozystack.

Timur Tukaev (tym83) and others added 3 commits October 5, 2026 13:17
Standard issue template for maintainers to track security scanner
findings with proper severity, triage status, and affected components.

Assisted-by: LLM
Signed-off-by: tym83 <6355522@gmail.com>
Add cncf-cozystack-security@lists.cncf.io as alternative reporting
channel for external reporters.

Assisted-by: LLM
Signed-off-by: tym83 <6355522@gmail.com>
The same finding is reported again on every scanner run, and without the
scanner name and its own identifier there is no reliable way to tell a
repeat from a new issue or to trace an issue back to the alert that raised
it. The form now asks for both; the finding ID stays optional because not
every scanner assigns one.

The CVE field becomes a vulnerability ID that also accepts GHSA and other
advisory IDs, since a required CVE field cannot be filled for findings that
have no CVE assigned. The default title spells out the package and ID, so
issues for the same finding are easy to search for.

Assisted-by: LLM
Signed-off-by: Timur Tukaev <timur.tukaev@aenix.io>
@tym83
Timur Tukaev (tym83) force-pushed the feat/security-issue-template branch from a148ecf to ee7e5cd Compare October 5, 2026 08:18

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Timur Tukaev (@tym83) NOT LGTM. As an org-wide default this form shows up in the wrong repos: it skips cozystack/cozystack, which has its own templates, and it appears in public repos where per-finding detail is not supposed to go.

Business context: maintainers want one structured form for tracking scanner findings across the org.

  1. The form contradicts the published security policy. SECURITY.md in cozystack/cozystack says per-finding detail and triage state "are kept private until fixed, because they describe unfixed exposure in released artifacts". Org-level issue templates in .github apply to every repo that has no .github/ISSUE_TEMPLATE of its own. Today that includes public repos like website, talm, cozyhr and cozystack-ui, so this adds a "Security Finding" form there that asks for the package, installed version, affected components and triage state of an unfixed finding. The "for maintainers" note does not stop anyone else from using it.

  2. The form misses the repos it is meant for. cozystack/cozystack has its own .github/ISSUE_TEMPLATE/, so org defaults never show there, even though the "Affected Cozystack components" placeholder points at packages/... in that repo. The scanner itself files its issues in the private security-scanner repo with gh issue create, and a form is not used by that path. If maintainers want a manual form, I think the right place is security-scanner/.github/ISSUE_TEMPLATE/, which is private and already where the security/* labels and reminders live.

  3. The PR body ends with the "Generated with Claude Code" line. It also still describes a "CVE ID" field that the third commit renamed to "Vulnerability ID" and does not mention the scanner and finding ID fields. The body becomes the merge commit message, so it needs to match the diff and drop the tool line.

Non-blocking: cncf-cozystack-security@lists.cncf.io is not listed in either SECURITY.md, the org one or the one in cozystack/cozystack. Both name only private vulnerability reporting and a direct maintainer contact. If the list is a real intake channel, it should be added there first, with someone named as reading it.

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.

2 participants