---
title: "af scan"
description: "Show the secret-scan findings for a change"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.forge.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# af scan

<!-- Generated by tools/gen-reference.mjs from `af scan --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

Before a change lands, the forge scans its submitted commit for secrets. This lists each finding's rule, file and line, and the SHA-256 of the secret found, never the secret itself, and how a secret found only once decoded was encoded. If you may not read every folder the change touches, it lists only what you may read, and says the view is partial.

## Usage

```text
af scan [OPTIONS] [CHANGE]
```

## Arguments

- `[CHANGE]`

  Change ID, or its start as `af log` shows it, or `@`; the workspace's change if omitted

## Options

- `--json`

  Print the scan as one JSON object, for a program to read

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af scan
```

Source: https://docs.forge.workreef.dev/reference/af/scan/index.mdx
