|
11 | 11 | <meta name="description" content="Instructions on how to trigger DAST/App using the API."> |
12 | 12 |
|
13 | 13 |
|
14 | | - <meta http-equiv="last-modified" content="2025-07-01 09:36:51"> |
| 14 | + <meta http-equiv="last-modified" content="2025-09-30 13:00:34"> |
15 | 15 |
|
16 | 16 |
|
17 | 17 | <link rel="canonical" href="https://docs.codacy.com/codacy-api/examples/triggering-dast-scans/"> |
@@ -4807,7 +4807,13 @@ <h2 id="trigger-dast-analysis-scans">Trigger DAST analysis scans<a class="header |
4807 | 4807 | <li><strong>ORGANIZATION:</strong> Name of the organization on the Git provider. For example, <code>codacy</code>. You must have admin permissions over the organization on the Git provider.</li> |
4808 | 4808 | <li><strong>DAST_TARGET_ID:</strong> Identifier of a DAST target to analyze (obtained in the <a href="./#creating-targets">previous section</a>. For example, <code>457</code>. You must have admin permissions over the organization on the Git provider.</li> |
4809 | 4809 | </ul> |
4810 | | -<p>Scans occur asynchronously. To monitor an ongoing scan you can use the <a href="../../../organizations/managing-security-and-risk/#app-scanning">target management page in Codacy</a>. Once completed, you can access all scan results by navigating to the <strong>Security dashboard</strong>, selecting the <strong>Findings tab</strong> and filtering by <strong>Scan types > DAST/App scanning</strong>.</p> |
| 4810 | +<p>Scans occur asynchronously. To monitor an ongoing scan you can use the <a href="../../../organizations/managing-security-and-risk/#app-scanning">target management page in Codacy</a>. Once completed, you can access all scan results by navigating to the <strong>Security dashboard</strong>, selecting the <strong>Findings tab</strong> and filtering by <strong>Scan types > DAST/App scanning</strong>, or by clicking on a configured target to expand all of that target's results. |
| 4811 | +Additionaly, you can use the <code>SearchSRMItems</code> endpoint to filter findings by their DAST target URL with the following request: |
| 4812 | +<div class="highlight"><pre><span></span><code>curl<span class="w"> </span>-X<span class="w"> </span>POST<span class="w"> </span>https://app.codacy.com/api/v3/organizations/gh/codacy/security/items/search<span class="w"> </span><span class="se">\</span> |
| 4813 | +<span class="w"> </span>-H<span class="w"> </span><span class="s2">"Accept: application/json"</span><span class="w"> </span><span class="se">\</span> |
| 4814 | +<span class="w"> </span>-H<span class="w"> </span><span class="s2">"api-token: {API_KEY}"</span><span class="w"> </span><span class="se">\</span> |
| 4815 | +<span class="w"> </span>-d<span class="w"> </span><span class="s1">'{"statuses":["OnTrack","Overdue","DueSoon"],"dastTargetUrls":["example.com]}'</span> |
| 4816 | +</code></pre></div></p> |
4811 | 4817 |
|
4812 | 4818 |
|
4813 | 4819 |
|
@@ -4964,7 +4970,7 @@ <h3>Share your feedback 📢</h3> |
4964 | 4970 | <div class="md-source-date"> |
4965 | 4971 | <small> |
4966 | 4972 |
|
4967 | | - Last modified <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">July 1, 2025</span> |
| 4973 | + Last modified <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">September 30, 2025</span> |
4968 | 4974 |
|
4969 | 4975 | </small> |
4970 | 4976 | </div> |
|
0 commit comments