22 lines
1.1 KiB
Markdown
22 lines
1.1 KiB
Markdown
# Source-archive fixture (#325)
|
|
|
|
A small service delivered the way a customer without a git remote delivers one:
|
|
a zip of the sources. The harness uploads this directory as a `source_archive`
|
|
artifact, and the baseline asserts it gets the same treatment as a repository —
|
|
SAST findings, secret detection, a package SBOM from the lockfile, and CVE
|
|
matching on it. `archive-order-intake-tgz` uploads the same directory as a
|
|
`.tar.gz` (#335), so its baseline must match this one.
|
|
|
|
Planted on purpose:
|
|
|
|
| Where | What |
|
|
|---|---|
|
|
| `src/server.js` | a shell command built from request input, and request input echoed into the response |
|
|
| `src/auth.py` | MD5 used for a signature check, and `shell=True` on a caller-supplied value |
|
|
| `config/service.env` | two expired, made-up credentials (a GitHub PAT and a Slack token shape) |
|
|
| `package-lock.json` | `lodash` 4.17.15 and `minimist` 1.2.0, both with published CVEs |
|
|
|
|
The credentials are not real and never were: they exist so the secret scanner
|
|
has something to find in a tree that is not a git checkout, which it used to
|
|
scan as nothing at all.
|