Repository navigation
docs: AI assistant prompt recipes - #17004
paulOsinski wants to merge 10 commits into
Conversation
Every docs page now has a Markdown copy at <page>/index.md, built from its source with the highlight, tabs and quiz shortcodes turned into plain Markdown and its links made absolute. The theme advertises it with a rel="alternate" type="text/markdown" link, and llms.txt now links each page's Markdown copy, as llmstxt.org recommends. Under each page title, "Copy page as Markdown" puts that copy on the clipboard and "View as Markdown" opens it. Labels are translated in all eight docs languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…into docs/llm-prompts
hugo.Sites does not exist in Hugo 0.153.5, the version the docs CI pins, so the build failed on the first translated page (and hung on the runner). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Pro documentation moved out of this repository today, and the docs CI here refuses a Pro page since the cutover PR landed. The Pro pages in this PR have been carried over to the Pro documentation repository as its pull request 52, for you, with this PR's description, so nothing needs re-doing; please drop these files from this PR before it merges, and the rest of it carries on here as usual:
|
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
1 similar comment
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…jo-pro-docs The docs cutover (DefectDojo#17048) moved the Pro pages and the docs site itself (layouts, i18n, llms.txt, theme config) to dojo-pro-docs. This PR keeps only the Open Source content: the ci-reimport and generic-findings-converter prompts, the pages that show them, the Prompt Recipes page and the two prompt shortcodes the preview build needs. Dropped here, per review: the two Pro pages (building_rules.md, PRO__report_builder_llm.md, already in dojo-pro-docs#52) and the two prompts they embed (simple-report, triage-engine-rule). The Markdown copy of every page, the page actions, the llms.txt links and their translated labels go to dojo-pro-docs with them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Conflicts have been resolved. A maintainer will review the pull request shortly. |
|
This pull request contains multiple critical findings where the user 'paulOsinski' modified sensitive codepaths, including database migrations and core models, without being on the allowed authors list. These unauthorized changes to restricted files pose a significant security risk and require immediate review.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in
|
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0283_unique_finding_vulnerability_id.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/models.py (drs_1e432d26)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/models.py' matches configured sensitive codepath pattern 'dojo/models.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/notes/signals.py (drs_2bcd900f)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/notes/signals.py' matches configured sensitive codepath pattern 'dojo/notes/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0281_vulnerability_id_type.py (drs_2e628f75)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0281_vulnerability_id_type.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/utils.py (drs_3ddfe784)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/utils.py' matches configured sensitive codepath pattern 'dojo/utils.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0300_finding_upper_title_index.py (drs_43809281)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0300_finding_upper_title_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/risk_acceptance/helper.py (drs_56bba585)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/risk_acceptance/helper.py' matches configured sensitive codepath pattern 'dojo/risk_acceptance/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0280_vulnerability_id_upper_index.py (drs_5b5e6eb5)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0280_vulnerability_id_upper_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0271_finding_perf_indexes.py (drs_6ce2905e)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0271_finding_perf_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/notes/helper.py (drs_6fac26a1)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/notes/helper.py' matches configured sensitive codepath pattern 'dojo/notes/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0314_sla_configuration_day_bounds.py (drs_73e41cde)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0314_sla_configuration_day_bounds.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/base_importer.py (drs_7600c199)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/importers/base_importer.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0244_pghistory_indices.py (drs_864f2366)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0244_pghistory_indices.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/services.py (drs_8d0902e9)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/finding/services.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/default_reimporter.py (drs_93ae4870)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/importers/default_reimporter.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0313_repair_invalid_concurrent_indexes.py (drs_9754ea16)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0313_repair_invalid_concurrent_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0273_product_upper_name_index.py (drs_9d900549)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0273_product_upper_name_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0270_finding_visibility_perf_indexes.py (drs_aeedf84a)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0270_finding_visibility_perf_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/helper.py (drs_b5cc9b7f)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/finding/helper.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0299_finding_test_numsev_index.py (drs_bb182821)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0299_finding_test_numsev_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0278_global_search_fts_trigram_indexes.py (drs_dde12327)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0278_global_search_fts_trigram_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0274_finding_sla_expiration_index.py (drs_f3762db0)
| Vulnerability | Configured Sensitive Codepath Modified by Non-Allowed Author |
|---|---|
| Description | File 'dojo/db_migrations/0274_finding_sla_expiration_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list. |
We've notified @mtesauro.
Comment to provide feedback on these findings.
Report false positive: @dryrunsecurity fp [FINDING ID] [FEEDBACK]
Report low-impact: @dryrunsecurity nit [FINDING ID] [FEEDBACK]
Example: @dryrunsecurity fp drs_90eda195 This code is not user-facing
All finding details can be found in the DryRun Security Dashboard.
Description
Prompt recipes for AI assistants: prompts that give an assistant the DefectDojo details it usually gets wrong, so the pipeline, converter or script it writes works the first time.
docs/content/prompts/, is shown on its task's page with{{< prompt "<name>" >}}, and is listed automatically on a new Prompt Recipes page (Automation > Prompt Recipes), which has an "On this page" entry for each.pagepoints nowhere. Nothing undercontent/prompts/is published as a page of its own, or appears in search or the sitemap.docs/README.mdexplains where prompts live and how to add one.The API facts in each prompt were checked against the code: the import and reimport serializers and the Generic Findings JSON parser.
What moved to the Pro documentation repository
Since the docs cutover (#17048), the docs site itself lives in the Pro documentation repository. This PR first also carried site changes and two Pro pages; those go there instead:
Test results
hugo --config config/production/hugo.toml) passes after mergingdev.scripts/docs_live_link_stubs.py) reports 0 errors.🤖 Generated with Claude Code