From be39638f3b8ca0531340a35fdbf116bb6273b473 Mon Sep 17 00:00:00 2001 From: aitechnology <40792067+vsn411@users.noreply.github.com> Date: Fri, 20 Nov 2026 20:10:32 +0000 Subject: [PATCH] Replace Markdown issue templates with issue forms; add a new-agent-adapter form The bug and feature templates become structured issue forms. The bug form requires the agent, OS, install method and version. A new form asks for what a reviewer needs to judge a proposed agent CLI: the headless command, how writes are blocked, the output format, and authentication. config.yml turns off blank issues and sends questions to Q&A, newcomers to the Start here discussion (#178), and vulnerabilities to SECURITY.md. Co-Authored-By: Claude Opus 5.5 --- .github/ISSUE_TEMPLATE/bug_report.md | 29 ------- .github/ISSUE_TEMPLATE/bug_report.yml | 91 ++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 11 +++ .github/ISSUE_TEMPLATE/feature_request.md | 13 --- .github/ISSUE_TEMPLATE/feature_request.yml | 47 ++++++++++ .github/ISSUE_TEMPLATE/new_agent_adapter.yml | 63 ++++++++++++++ 6 files changed, 212 insertions(+), 42 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml create mode 100644 .github/ISSUE_TEMPLATE/new_agent_adapter.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index a190ed7..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -name: Bug report -about: Something isn't working as expected -title: '' -labels: bug -assignees: '' ---- - -**Command run** - -``` -secfoo run --skill ... --target ... --agent ... -``` - -**Expected behavior** - -**Actual behavior** - -**Version** - -- `secfoo --version` (or `pip show secfoo`): -- Agent CLI + version (`claude --version` / `cursor-agent --version` / etc.): -- OS: - -**Logs** - -If this is a run failure, attach the relevant files from -`~/.secfoo/reports//` — `stderr.log` especially, it's almost -always the fastest way to diagnose an agent-adapter problem. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..065e03a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,91 @@ +name: Bug report +description: Something in the secfoo CLI or dashboard doesn't work as expected +labels: ["bug", "needs difficulty"] +body: + - type: markdown + attributes: + value: | + Thanks for reporting. A reproducible command plus `stderr.log` usually lets us fix it the same week. + **Security vulnerabilities:** please don't file them here. See [SECURITY.md](https://github.com/secfoo-com/secfoo/blob/main/SECURITY.md). + - type: textarea + id: command + attributes: + label: Command you ran + description: The exact command, with secrets removed. + render: shell + placeholder: secfoo run --skill sast --target . --agent claude --depth quick + validations: + required: true + - type: textarea + id: expected + attributes: + label: What you expected + validations: + required: true + - type: textarea + id: actual + attributes: + label: What happened instead + description: Error output, wrong findings, a traceback, a broken dashboard page... + validations: + required: true + - type: input + id: version + attributes: + label: secfoo version + description: Output of `secfoo --version` + placeholder: "0.3.2" + validations: + required: true + - type: dropdown + id: agent + attributes: + label: Agent + options: + - claude + - agent (Cursor) + - agy (Antigravity) + - gemini + - codex + - copilot + - droid + - devin + - opencode + - api + - Not agent-related (dashboard, export, config...) + validations: + required: true + - type: input + id: agent-version + attributes: + label: Agent CLI version + description: For example the output of `claude --version`. Leave blank for `api` or if this isn't agent-related. + - type: dropdown + id: os + attributes: + label: Operating system + options: + - macOS + - Linux + - Windows + - Docker image + - CI runner (say which below) + validations: + required: true + - type: dropdown + id: install + attributes: + label: How you installed secfoo + options: + - pip / pipx / uv + - install.sh / install.ps1 + - npm + - Docker (ghcr.io/secfoo-com/secfoo) + - From source (pip install -e .) + - GitHub Action + - type: textarea + id: logs + attributes: + label: Logs + description: For a run failure, paste or attach `~/.secfoo/reports//stderr.log`. It's usually the fastest way to diagnose an agent problem. Remove any secrets first. + render: text diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..7890af9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,11 @@ +blank_issues_enabled: false +contact_links: + - name: New here? Start with this + url: https://github.com/secfoo-com/secfoo/discussions/178 + about: How to pick an issue, set up, and get a PR merged. + - name: Question or help using secfoo + url: https://github.com/secfoo-com/secfoo/discussions/categories/q-a + about: Ask in Q&A discussions rather than opening an issue. + - name: Report a security vulnerability + url: https://github.com/secfoo-com/secfoo/blob/main/SECURITY.md + about: Report privately, as SECURITY.md describes. Please don't open a public issue. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 5ca5102..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: Feature request -about: Suggest a skill, flag, or dashboard improvement -title: '' -labels: enhancement -assignees: '' ---- - -**What are you trying to do?** - -**What's missing or awkward about the current way to do it?** - -**Proposed solution, if you have one** diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..2184607 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,47 @@ +name: Feature request +description: Suggest a skill, flag, CI integration or dashboard improvement +labels: ["enhancement", "needs difficulty"] +body: + - type: markdown + attributes: + value: | + For open-ended ideas, [Ideas discussions](https://github.com/secfoo-com/secfoo/discussions/categories/ideas) work better. Use this form when you can describe a concrete problem. + - type: textarea + id: problem + attributes: + label: What are you trying to do? + description: The task or workflow, in your own words. + validations: + required: true + - type: textarea + id: gap + attributes: + label: What's missing or awkward today? + description: What you tried, and where it falls short. + validations: + required: true + - type: textarea + id: proposal + attributes: + label: Proposed solution + description: Commands, flags, output or screens you'd expect. Optional, but it helps. + - type: dropdown + id: area + attributes: + label: Area + options: + - Skills / report content + - Agent adapters + - CI / SARIF / exports + - Dashboard + - MCP / documentation context + - Runtime sensor / SCA reachability + - Other + validations: + required: true + - type: checkboxes + id: contribute + attributes: + label: Contributing + options: + - label: I'd like to work on this myself diff --git a/.github/ISSUE_TEMPLATE/new_agent_adapter.yml b/.github/ISSUE_TEMPLATE/new_agent_adapter.yml new file mode 100644 index 0000000..3b706e8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/new_agent_adapter.yml @@ -0,0 +1,63 @@ +name: New agent adapter +description: Propose support for another coding-agent CLI (`secfoo run --agent `) +title: "New agent adapter: " +labels: ["enhancement", "needs difficulty"] +body: + - type: markdown + attributes: + value: | + Adapters live in `src/secfoo/agents/` (one file per CLI) and are registered in `ADAPTERS`. `docs/agents.md` documents every adapter's exact command line. The questions below are what a reviewer needs to judge whether the CLI can run a **read-only, non-interactive** review. + - type: input + id: cli + attributes: + label: CLI name and official docs link + placeholder: "ExampleAgent CLI: https://docs.example.com/cli" + validations: + required: true + - type: input + id: version + attributes: + label: Version you checked + description: Output of ` --version` + validations: + required: true + - type: textarea + id: headless + attributes: + label: Non-interactive invocation + description: The exact command that runs one prompt and exits. Say how the prompt is passed (argument, stdin or file) and which flag selects the working directory. + render: shell + validations: + required: true + - type: textarea + id: readonly + attributes: + label: Read-only guarantee + description: How writes and shell commands are blocked (a sandbox, a permission mode, a tool allowlist), or say plainly that they can't be. secfoo never passes "yolo" or auto-approve-all flags. + validations: + required: true + - type: textarea + id: output + attributes: + label: Output format + description: Is there JSON or JSONL output? Where do the final answer and token or cost usage appear? Paste a trimmed sample. + render: json + - type: textarea + id: auth + attributes: + label: Authentication for headless runs + description: API key environment variable, a prior `login` command, subscription credentials... + validations: + required: true + - type: textarea + id: extras + attributes: + label: Model selection and MCP + description: Flag to pick a model, if any. How MCP servers are configured (a per-run flag, a config file, or not supported). + - type: checkboxes + id: contribute + attributes: + label: Contributing + options: + - label: I can test this against a real account and attach a sample report + - label: I'd like to implement the adapter myself