Repository navigation
Releases
Releases · TMHSDigital/Spackle
v0.2.2
Fixed
- A repository whose git configuration uses
includeIf, asactions/checkoutwrites for its credentials, is read as a repository again. In 0.2.1 it was scanned as a plain directory, so the Action'sdiff-basefailed with exit code 2. Every file the repository's own configuration includes, under any condition and at any depth, is now checked for keys that name a program, and a repository with one is still refused. docs/PRIVACY.mdlistsAuthorizationvalues, says where the values the infrastructure checks report are hidden, and says redaction is best-effort.
See the 0.2.1 notes for the upgrade notes that apply when coming from 0.2.0.
Verify this release
cosign verify-blob checksums.txt \
--bundle checksums.txt.sigstore.json \
--certificate-identity-regexp 'https://github.com/TMHSDigital/Spackle/.github/workflows/release.yml@refs/tags/v.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum --ignore-missing -c checksums.txt
gh attestation verify <archive> --repo TMHSDigital/Spacklev0.2.1
Known issue: in GitHub Actions,
actions/checkoutadds anincludeIfentry to the repository's git configuration, and 0.2.1 then scans the checkout as a plain directory, so the Action'sdiff-basefails with exit code 2. Fixed in v0.2.2; use that release.
Upgrading from 0.2.0: these changes can turn a passing job into a failing one, or change what a run reads.
spackle verifyrefuses a run made before this release, or one copied from another machine or user: scan again and verify the new run.- A runs folder is not read when git cannot read the repository around it, including one owned by another account.
- A repository whose own git configuration uses
includeIf, or names a program forcore.fsmonitor, is scanned as a plain directory.
Changed
spackle verifyruns the stored proofs of a run only if this user made it on this machine. Each run now gets anoriginfile, an HMAC of its id under a key Spackle keeps in your configuration directory (spackle/run-keyunder%AppData%,~/.configor~/Library/Application Support). A run folder that arrived any other way, or one made before this release, is refused: scan again and verify the new run. The scanned directory must be the current directory or inside it once symbolic links and junctions are resolved.- A runs folder is not read when git cannot say whether it is tracked (a broken or unsafe repository configuration, or one git refuses for dubious ownership).
- A recorded fix patch hides every secret value of the original file on both sides of the diff, wherever it appears, and sandbox output (fix checks, debug checks, the evidence files) hides the secret values of the files the run was given.
- A credential that the Dockerfile, Kubernetes and Terraform checks report is hidden wherever it appears in the file it was found in, in any form (continuation lines, several pairs on a line, flow maps, block scalars, escaped quotes), however the path to the file is spelled and through a symbolic link, and in a commit patch that touches the file. A value shaped like a token is also hidden everywhere else (patches, sandbox output, prompts); any other value is not, so a scanned repository cannot hide code from the model by writing it as a secret.
- An
Authorizationvalue is redacted in code forms (Header.Set("Authorization", ...),[]string{...},setRequestHeader,=>, templates, f-strings, escaped JSON, XML,HTTP_AUTHORIZATION), for more schemes, and without a scheme when it holds letters and digits. Only values that look like credentials are reported. - The scope check for a running target refuses any percent sequence left after one decode, paths that are not valid UTF-8, and dot segments disguised with control, white space, invisible, combining or filler characters, look-alike dots, look-alike semicolons, or three or more dots; a segment holding a slash look-alike is refused.
- Response headers whose name marks a credential are masked for more names (
X-Csrf,X-Sid,X-Access-Key,X-Passphrase,X-Request-Signatureand others), CORS headers stay readable, and the parameter values ofLocation,Content-Location,RefreshandLinkURLs (query, fragment, path parameters) are masked. - git runs with lazy fetching off; a partial clone's remote programs are checked for every command, and one that needs objects Spackle will not fetch says so. A repository whose own config uses
includeIfis refused; a plainincludeis checked like the rest, andcore.fsmonitoris allowed only when every value git would read for it (included files and the worktree config too) is a boolean. - A git URL with a password is cloned without asking a credential helper, so none stores it. Errors and displays drop the user information of a URL even when the password holds a raw
@,/or quote, and keep an@in a path (repo@v2,/@scope). - The seeder status names every
.semgrepignoreand.gitleaksignorethe scanners read from the target, at any depth. base_urlmust be an absolute http or https URL with no white space, control character, quote, backtick, angle bracket, backslash or fragment. An endpoint that cannot be made into a request is not repeated in an error, and the Ollama hint drops the query and user information ofbase_url.
Redaction is pattern-based and best-effort: a secret in a form no rule or check recognizes can still reach the model provider. docs/PRIVACY.md says what is covered.
Verify this release
cosign verify-blob checksums.txt \
--bundle checksums.txt.sigstore.json \
--certificate-identity-regexp 'https://github.com/TMHSDigital/Spackle/.github/workflows/release.yml@refs/tags/v.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum --ignore-missing -c checksums.txt
gh attestation verify <archive> --repo TMHSDigital/Spacklev0.2.0
Upgrading from 0.1.0: these changes can turn a passing job into a failing one, or change what a run reads.
- A
spackle.tomlfound in the working directory is no longer trusted in full. Its endpoints, key variables,openai-compatiblemodels,[pricing],[scope], sandbox images and network,pr,state_dir,[output] dirand budget raises are left out, and Spackle names them. Pass--config spackle.toml(in the Action,args: --config ...) to apply such a file in full. - A finding with a checked patch that is not applied is now
patch-availableand counts toward--fail-on. It used to befixedand passed. Apply or merge the patch, or accept the finding with a baseline. - A run nobody confirms (
--yes, the Action, the MCP server) with a dollar cap and a model of unknown price is refused with exit code 2. Add a[pricing]entry for the model, or pass--allow-unpriced. report,verify,doctoranddebugreject flags they used to accept and ignore (exit code 2). Drop the flag.spackle verifyruns only from the scanned directory or one that contains it, and a runs folder tracked by git is not read.- A repository whose own
.git/configsets a filter, diff or merge driver is scanned as a plain directory. --offlinetogether with--pris refused with exit code 2.
Added
- Runs record the version of each installed external scanner in its seeder status, and the report shows it on the seeder line.
spackle doctorshows the version and warns when it differs from the version the adapter is tested with, or cannot be read. The tested versions are one Go table that a test keeps equal to the pins of the scanners workflow. spackle scan <directory> --stagedreports only on files whose staged version differs from the last commit, so a pre-commit hook judges what is being committed: untracked files and unstaged edits to other files no longer block a commit. The files are read from the working tree, and the report says how many of them also have unstaged edits. A.pre-commit-hooks.yamllets pre-commit users add Spackle withrepo:andrev:, anddocs/ci.mdnow shows the hook with--staged.- Reports split the model calls, tokens and cost by pipeline stage, with the models each stage used (a
Stageline per stage, andusage.by_stagein the JSON report), so the effect of per-stage models on a budget can be seen.spackle runsshows each run's model spend, andruns --format jsonand the MCPlist_runstool return it ascost_usd. - Baseline files accept known findings, so a team can adopt the gate on an existing codebase.
spackle baseline [run-id] --out <file> [--reason <text>]writes one entry per unresolved finding of a run. A scan with--baseline <file>(or[scan] baseline) still reports a finding that matches an entry, with the statusacceptedand the entry's reason, but does not fail on it; SARIF marks it with anexternalsuppression. Entries match by fingerprint, so code that only moved stays accepted, and may carry anexpiresdate. A run lists the entries that matched nothing and those that expired. - Findings carry a line-independent
fingerprint, made from the text of the flagged lines instead of the line number.spackle runs compareand the MCPcompare_runstool match on it after the id, so a finding whose code only moved (because lines were added or removed above it) is reported as still present, "moved from" its old location, instead of as one gone and one new. SARIF reports carry it as the extra partial fingerprintspackle/content/v1. - The MCP
scantool takessince(a git revision) andchanged(uncommitted work), so a coding agent can ask what its change introduced, and a read-onlycompare_runstool returns the new, gone and still-present findings of two stored runs. spackle scan <URL> --routes-from <directory>adds the HTTP routes found in the running application's source to the crawl, so a JSON API that links to nothing is examined beyond its start URL. Only plain GET paths are added (a route with a path parameter, a pattern or another method is left out), each goes through the scope check like a link, and the run notes say how many routes were read and added. It is refused for a directory or git URL target.- A
[test]configuration table sets the project's test commands when the ones Spackle picks do not fit:commandruns the whole suite (the scan's baseline and patched test runs, and the suite check after a fix inspackle debug), andsingleruns one test forspackle debug --test, with{name}replaced by the test name. Projects on Jest, Vitest or Mocha, or whose tests run throughmakeortox, can then be debugged by test name. Both are argument vectors that run only in the sandbox, and a run that uses them says so in its notes. - The MCP
scantool takesdry_run: true, which returns the plan and the cost estimate of the scan, asspackle scan --dry-runshows them, without calling a model or storing a run. spackle scan <directory> --changedreports only on files that differ from the last commit, staged or not, and on new files git does not ignore, for a scan before you commit.docs/ci.mdshows it as a pre-commit hook.spackle rules [--format text|json]lists every built-in rule with its source, id, class, severity, CWE and the files it reads. A scan warns, on the terminal and in the report, when[scan] disable_rulesnames something that looks like a built-in id but matches none, such as a typo.[output] fail_on_confidence(also--fail-on-confidenceand the Action inputfail-on-confidence) sets the lowest confidence a finding needs to count towardfail_on:plausible(the default, every finding, as before),highordemonstrated. Unconfirmed leads can then be reported without failing CI.spackle report <run> --finding <id>(repeatable) renders only the named findings, in any format. An id that is not in the run exits 2.- A
[scan]configuration table:exclude(also--exclude, repeatable) keeps paths out of the scan,includereads a directory that is skipped by default, anddisable_rulesdrops the leads of a rule. The report lists what was excluded. spackle verify --format jsonprints every outcome as one JSON document with the counts, and--finding <id>(repeatable) re-runs only the proofs of the named findings. An id that is not in the run exits 2.- Action outputs
run-id,run-dirand the per-severity countscritical,high,mediumandlow, and the inputupload-run, which uploads the run directory (ledger, reports, proofs, patches) as a workflow artifact so it outlives the job. The Action now also writes a JSON report next to the SARIF and Markdown ones. - Action input
spackle-dir, to run the Action with an existing binary instead of a downloaded release, and outputhas-sarif. spackle doctor --format jsonprints the checks as JSON, with the same rows the MCPdoctortool returns.spackle scan <git URL> --ref <branch or tag>scans a named branch or tag instead of the default branch. The ref is recorded in the run.spackle scan <directory> --since <revision>reports only on files changed since that revision, so a pull request is judged on what it changes. Leads in other files are left out and the report says how many; with a model only the changed files are planned for investigation. The Action exposes it as thediff-baseinput, which needs a checkout withfetch-depth: 0.[scan] scannerschooses which external scanners a scan runs (for example["gitleaks", "hadolint"]). Without the key every installed scanner runs, as before;scanners = []runs none. A scanner left out is shown as not run, with the reason, in the report and inspackle doctor, and an unknown name is refused when the configuration is loaded.spackle scan --since <revision> --diff-scope lines(or with--changed) reports only the leads on lines the change added or modified, instead of every lead in a changed file, and says how many leads elsewhere in the changed files were left out. A lead with no line, such as a vulnerable dependency, is still reported when its file changed. A resumed run keeps the scope of the run it continues. The Action takes it as thediff-scopeinput, and the MCPscantool asdiff_scope.spackle scan <directory> --resume <run id>(or--resume latest) continues a scan that stopped on its budget. It investigates what that run planned and did not reach, under a new budget and without planning again, and carries the earlier findings into the new report. It is refused when the target's commit changed since, unless--forceis passed. A scan that stops on its budget prints the command.spackle scan --dry-runshows what a scan would read, each seeder and its lead count, the leads by class, the number of investigations that would be planned and the cost estimate. It calls no model and stores no run.- SARIF reports now carry the traced data flow of a finding as
codeFlows, readable rule names, descriptions and remediation help from the class table, and the verification text and fix branch of a finding that has a patch. spackle runslists the stored runs, andspackle runs prune --keep <n>or--older-than <age>deletes old runs with their clones and fix worktrees after listing them.spackle runs compare <older> <newer>lists the findings that are new, gone, or present in both of two stored runs. With--fail-on(and--fail-on-confidence) it exits 1 when a new finding meets the threshold.
Changed
- The short hash in a
[REDACTED:<rule>:<hash>]marker and in a secret finding is now keyed with a random value made when Spackle starts and kept only in memory. It still tells two secrets apart within a run, but can no longer be compared against guessed values, and it differs from run to run. Finding fingerprints leave the hash out, so they stay the same across runs. - A user name and password in a git ...
v0.1.0
Changelog
- 4120686: Initial commit (TM Hospitality Strategies 154358121+TMHSDigital@users.noreply.github.com)
- b75c6ed: feat: agents, providers, sandboxed proofs and verified fixes (M2, M3) (TM Hospitality Strategies TMHospitalityStrategies@gmail.com)
- f03b2bf: feat: deterministic scan, evidence ledger and reports (M1) (TM Hospitality Strategies TMHospitalityStrategies@gmail.com)
- 3850163: feat: public foundation for Spackle (TM Hospitality Strategies TMHospitalityStrategies@gmail.com)
- 143c3a5: feat: running-target analysis, debug mode, CI action, benchmark and docs (M4-M6) (TM Hospitality Strategies TMHospitalityStrategies@gmail.com)
- 3e6c5c1: fix: git export and map cache on Windows runners (TM Hospitality Strategies TMHospitalityStrategies@gmail.com)
Verify this release
cosign verify-blob checksums.txt \
--bundle checksums.txt.sigstore.json \
--certificate-identity-regexp 'https://github.com/TMHSDigital/Spackle/.github/workflows/release.yml@refs/tags/v.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum --ignore-missing -c checksums.txt
gh attestation verify <archive> --repo TMHSDigital/Spackle