Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"metadata": {
"description": "Claude Code skills for earning Security Slam project badges.",
"version": "0.1.0"
"version": "0.1.1"
},
"plugins": [
{
Expand Down
2 changes: 1 addition & 1 deletion security-slam-skills/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "security-slam-skills",
"description": "One skill per Security Slam project badge: Cleaner, Chronicler, Inspector, Mechanizer, Defender, and CRA, plus a status check across all six.",
"version": "0.1.0",
"version": "0.1.1",
"author": {
"name": "Security Slam",
"url": "https://securityslam.com"
Expand Down
4 changes: 3 additions & 1 deletion security-slam-skills/skills/cleaner/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ find . -maxdepth 2 -iname 'security-insights.y*ml' -not -path './node_modules/*'

If one exists, read it and note its `header.schema-version`. A `schema-version` of `1.x.x` is the retired v1 format. Tell the user and migrate it to v2 in step 4.

If none exists, create `security-insights.yml` at the repository root. That is the name and location the Slam instructions use. The upstream spec also accepts `.github/security-insights.yml`, and the `find` above matches other casings such as `SECURITY-INSIGHTS.yml`. Keep whatever name an existing file or the project's other tooling already uses.
If none exists, create `security-insights.yml` at the repository root. That is the name and location the Slam instructions use. The upstream spec also accepts the `.github/` directory and the `.yaml` extension, and the `find` above matches other casings such as `SECURITY-INSIGHTS.yml`. Keep whatever name an existing file or the project's other tooling already uses.

If the `find` returns two files in the same directory, such as `security-insights.yml` and `security-insights.yaml`, stop and ask the user which one to keep. The spec tells consumers to report an error instead of choosing one. Merge anything unique into the kept file and delete the other.

### 2. Gather evidence

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pvtr version
pvtr install openssf/github-repo
```

- `pvtr version` must report 0.23.0 or later. Older releases ignore the `targets:` key in step 2 and finish without writing any results. If the version is older, show the user the upgrade command (`brew upgrade privateerproj/tap/pvtr`, or the install script again) and run it once they agree.
- If `pvtr` is missing, show the user the install command and run it once they agree: `brew install privateerproj/tap/pvtr`, or the install script in the [pvtr README](https://github.com/privateerproj/pvtr#readme), which puts the binary in `~/.privateer/bin`. Installing a CLI changes their machine, so ask first.
- `pvtr install openssf/github-repo` installs the scanner plugin from grc.store, or updates it to the latest signed release, and verifies the signature before writing anything. Run it every time: it keeps the local scanner at the version the hub runs, and it is quick when nothing changed.
- `gh` must be signed in (`gh auth status`) and `yq` must be on the `PATH`.
Expand Down Expand Up @@ -58,7 +59,7 @@ The target name (`skills`, `website`) names the results folder. Keep it to the r
(cd "$dir" && pvtr run -c config.yml --silent)
```

Run from inside the temporary directory: pvtr 0.23 writes `evaluation_results/` into the current directory and ignores `--write-directory` and `--output`. Exit code 1 means at least one target has a `Failed` result. That is an honest scan, not a broken run. A run that stops before any control is logged is a token or API problem: check `gh auth status` and run it once more.
Run from inside the temporary directory: pvtr 0.23 writes `evaluation_results/` into the current directory and ignores `--write-directory` and `--output`. Exit code 1 means at least one target has a `Failed` result. That is an honest scan, not a broken run. A run that stops before any control is logged is a token or API problem: check `gh auth status` and run it once more. A run that leaves no `evaluation_results/` directory at all is an old `pvtr` that skipped the config: go back to step 1.

## 4. Read the results

Expand Down
Loading