Skip to content
Exchange

A security scan checklist

1 file1 KB

A look inside

The first lines of sast-sca-secrets.md. The whole file is in your library once you get it.

# A security scan checklist

A free card from MenFem's Building with agents, lesson 7.1: Scanning code and dependencies for leaks and holes.
The lesson, with the picture and the examples: https://menfem.com/courses/building-with-agents/sast-sca-secrets

This is what you keep: the three scans, where they run, and what to do on the day a key gets out.

1. Turn on secret scanning that blocks a push, and point it at the history too.
2. If a key gets out, cancel it and issue a new one before anything else.
3. Run a code scan (SAST) on every pull request, an agent's or a person's.
4. Run a dependency scan (SCA) on the whole tree, not just the packages you chose.
5. A new package from an agent waits until a person checks it is real and who publishes it.
6. Make a failed scan block the merge, and write down why each finding was closed.

**The rule:** An agent's code goes through the same scans as yours, before it merges, every time.

## Used once

From the lesson, on a made-up shop: "An agent adds a test that only passes with the live payment key, so it pastes the key into the test file."

Answer: Secret scan. A key in a file is exactly what a secret scan looks for. Set it to block the push, and the key never reaches the repo.

## Your turn
…and 10 more lines.

What is inside

  • sast-sca-secrets.md1 KB

How to use it

Open it beside the job and go down the 6 lines in order, then check your answer against the rule at the bottom. It is the card from Building with agents, lesson 7.1 (Scanning code and dependencies for leaks and holes), with one worked example from the lesson and a space for your own case.

Run before it was listed

Tested 2026-11-29: Generated from the lesson's own keep card and checked line by line against it; used once on the lesson's made-up example, which is printed in the file.