мне нужно переписать /common/init.yml и common/templates/.after-script-upload-report.yml…
- User
мне нужно переписать /common/init.yml и common/templates/.after-script-upload-report.yml для реимпорта отчётов в defectdojo (api/v2/import-scan/ меняем на api/v2/reimport-scan/ SEC_DEFECT_MANAGEMENT_SYSTEM - defectdojo (код раскомментировал) Reimports a scan report into an existing test.
By ID:
Create a Product (or use an existing product) Create an Engagement inside the product Import a scan report and find the id of the Test Provide this in the test parameter By Names:
Create a Product (or use an existing product) Create an Engagement inside the product Import a report which will create a Test Provide product_name Provide engagement_name Optional: Provide test_title In this scenario Defect Dojo will look up the Test by the provided details. If no test_title is provided, the latest test inside the engagement will be chosen based on scan_type.
When using names you can let the importer automatically create Engagements, Products and Product_Types by using auto_create_context=True.
When auto_create_context is set to True you can use deduplication_on_engagement to restrict deduplication for imported Findings to the newly created Engagement.
Parameters Try it out No parameters
Request body
multipart/form-data scan_date string($date) Scan completion date will be used on all findings.
minimum_severity string Minimum severity level to be imported
Info - Info Low - Low Medium - Medium High - High Critical - Critical active * [Redacted Person] Override the active setting from the tool.
verified * [Redacted Person] Override the verified setting from the tool.
endpoint_to_add integer Enter the ID of an Endpoint that is associated with the target Product. New Findings will be added to that Endpoint.
file string(date) End Date for Engagement. Default is current time + 365 days. Required format year-month-day
Assistant
- User
что поменялось
Assistant
- User
нужно чтобы на init стадии проверялось создан ли такой продукт если нет то создать его и если в этом продукте уже есть engagement то нужно узнать какой engagement последний (самый новый) и загружать тесты в него
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.