> For the complete documentation index, see [llms.txt](https://docs.clouddefenseai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clouddefenseai.com/scans/secrets-scan.md).

# Secrets Scan

{% embed url="<https://youtu.be/UVbRxRU7chA>" %}

### **Prerequisite**

* Clouddefense CLI&#x20;
* Gitleaks

### Steps

To scan for secrets we need to pass “--no-git” flag from the CLI like,

```
// Some codecdefense full --api-key=6262fe7f-1434-2711-78fa-268ce4187339 --path=/opt/secretsandstuff --project-name=leaks --no-git
```

In the above command we pass our api-key, with the project path to scan and –no-git to include secret scans.

Once scans finish we can look the data in UI

<figure><img src="https://lh5.googleusercontent.com/Olyfc_pWxOrZ2JLEcacRI_giu5zTCTdNAxkUtXVK4sTqq6X2zp7GGtZJ7n4m3jx_cZUmUCWDdZz_sAWMsiWGIdaZhG7zNH98XszFvD8eZxCzMOsRBjeYBwwfMVpQj_tcuqiPk8UKLiIgBMKUqclATHgT-QhHdXkZqO6wLEX642VNwBzH6t6R58T4EA" alt=""><figcaption></figcaption></figure>

And once expanded ,we can see our data

<figure><img src="https://lh6.googleusercontent.com/4mccujsfm-nC_gNp6cypwl0PUZRc3NmrWB62d9jsLjPxjPdELfkdU9fu44em5vXJCbbxh-fEXYiBCjl6qWpjtqCZcv0roRdsVBs8v2LhVwj3JV-DdM7tAWAYag1YqAl42uegFWyIPIzVASBjTcK_5JkPaz9shgZzU-up7IT8VE4qiO1UZhWNu-aq3Q" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.clouddefenseai.com/scans/secrets-scan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
