Skip to content

Find the holes before someone else does. A fast, 100% Rust vulnerability scanner: XSS, SQL injection, leaked secrets, dependency CVEs and AI agent setups.

chore: issue templates and pull request template

Kamba352955dadd
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 0000000..f13de4a
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,48 @@
+name: Bug report
+description: A crash, a wrong exit code, broken output, or an install that fails
+labels: [bug]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ A wrong or missing finding has its own template. A security problem in safe-anything itself goes
+ through the private report in SECURITY.md. **Don't paste secrets or private code.**
+ - type: textarea
+ id: what
+ attributes:
+ label: What happened
+ description: What you ran, what you expected, and what you got instead.
+ validations:
+ required: true
+ - type: textarea
+ id: output
+ attributes:
+ label: Output
+ description: The full error, or the relevant part of the output.
+ render: text
+ - type: dropdown
+ id: install
+ attributes:
+ label: How you run it
+ options:
+ - npx / npm
+ - cargo install
+ - Release binary
+ - GitHub Action
+ - MCP server or Claude Code plugin
+ validations:
+ required: true
+ - type: input
+ id: version
+ attributes:
+ label: safe-anything version
+ description: Output of `safe-anything --version`.
+ validations:
+ required: true
+ - type: input
+ id: os
+ attributes:
+ label: OS
+ placeholder: macOS 26 arm64
+ validations:
+ required: true
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..514174d
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,5 @@
+blank_issues_enabled: true
+contact_links:
+ - name: Report a vulnerability in safe-anything itself
+ url: https://github.com/erkamyaman/safe-anything/security/advisories/new
+ about: Please report security problems in the tool privately, not in a public issue.
diff --git a/.github/ISSUE_TEMPLATE/rule_request.yml b/.github/ISSUE_TEMPLATE/rule_request.yml
new file mode 100644
index 0000000..8bfed88
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/rule_request.yml
@@ -0,0 +1,30 @@
+name: New rule or feature
+description: A problem safe-anything should find, or something it should do
+labels: [enhancement]
+body:
+ - type: textarea
+ id: problem
+ attributes:
+ label: What it should find or do
+ description: The vulnerable pattern or misconfiguration, or the feature you have in mind.
+ validations:
+ required: true
+ - type: textarea
+ id: example
+ attributes:
+ label: Unsafe and safe examples
+ description: A few lines that should be flagged, and a look-alike that shouldn't. Made-up values only.
+ render: text
+ - type: input
+ id: reference
+ attributes:
+ label: Reference
+ description: A CWE, an OWASP page, an advisory or a write-up, if you have one.
+ - type: dropdown
+ id: contribute
+ attributes:
+ label: Would you like to work on it?
+ options:
+ - "Yes, I can open a pull request"
+ - "Maybe, with some guidance"
+ - "No"
diff --git a/.github/ISSUE_TEMPLATE/wrong_finding.yml b/.github/ISSUE_TEMPLATE/wrong_finding.yml
new file mode 100644
index 0000000..25560fc
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/wrong_finding.yml
@@ -0,0 +1,47 @@
+name: False positive or missed finding
+description: safe-anything flagged safe code, or missed a real problem
+labels: [false-positive]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thanks. Every report like this becomes a test fixture.
+
+ **Don't paste real secrets, tokens or private code.** Replace keys with made-up values of the
+ same shape and cut the code down to the few lines that matter.
+ - type: dropdown
+ id: kind
+ attributes:
+ label: What went wrong
+ options:
+ - It flagged something that is safe (false positive)
+ - It missed something that is unsafe (missed finding)
+ validations:
+ required: true
+ - type: input
+ id: rule
+ attributes:
+ label: Rule id
+ description: The rule that fired, or the one you expected to fire (for example `code.sql-injection`). `safe-anything --list-rules` lists them.
+ - type: textarea
+ id: snippet
+ attributes:
+ label: Smallest code that shows it
+ description: A few lines, with the file name, since some rules depend on it (`.mcp.json`, `Dockerfile`, `.env.example`).
+ render: text
+ validations:
+ required: true
+ - type: textarea
+ id: why
+ attributes:
+ label: Why it's wrong
+ description: Why this code is safe, or how an attacker could use the missed problem.
+ validations:
+ required: true
+ - type: input
+ id: version
+ attributes:
+ label: safe-anything version
+ description: Output of `safe-anything --version`.
+ validations:
+ required: true
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
new file mode 100644
index 0000000..d8fc7f0
--- /dev/null
+++ b/.github/pull_request_template.md
@@ -0,0 +1,18 @@
+## What and why
+
+<!-- What was wrong or missing, and how this change fixes it. Link the issue: Fixes #123 -->
+
+## Verified
+
+<!-- What you ran and what you saw. For a rule change: the fixture, and a run on a real repository. -->
+
+## Not verified
+
+<!-- What you couldn't try, and why. "Nothing" is a fine answer. -->
+
+## Checklist
+
+- [ ] `cargo fmt`, `cargo clippy --all-targets -- -D warnings` and `cargo test` pass
+- [ ] A fixture with the unsafe case and a safe look-alike that must not be flagged
+- [ ] No real secrets in fixtures (fake tokens are built at run time, see `tests/common`)
+- [ ] `docs/rules.md` and `CHANGELOG.md` updated if users will notice the change