Skip to content

Releases

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 29 Nov 19:32
v0.2.2
e4c3d8b

Fixed

  • A repository whose git configuration uses includeIf, as actions/checkout writes for its credentials, is read as a repository again. In 0.2.1 it was scanned as a plain directory, so the Action's diff-base failed 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.md lists Authorization values, 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/Spackle

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 18:30
v0.2.1
2b51c20

Known issue: in GitHub Actions, actions/checkout adds an includeIf entry to the repository's git configuration, and 0.2.1 then scans the checkout as a plain directory, so the Action's diff-base fails 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 verify refuses 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 for core.fsmonitor, is scanned as a plain directory.

Changed

  • spackle verify runs the stored proofs of a run only if this user made it on this machine. Each run now gets an origin file, an HMAC of its id under a key Spackle keeps in your configuration directory (spackle/run-key under %AppData%, ~/.config or ~/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 Authorization value 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-Signature and others), CORS headers stay readable, and the parameter values of Location, Content-Location, Refresh and Link URLs (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 includeIf is refused; a plain include is checked like the rest, and core.fsmonitor is 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 .semgrepignore and .gitleaksignore the scanners read from the target, at any depth.
  • base_url must 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 of base_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/Spackle

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 03:40
v0.2.0
909cf75

Upgrading from 0.1.0: these changes can turn a passing job into a failing one, or change what a run reads.

  • A spackle.toml found in the working directory is no longer trusted in full. Its endpoints, key variables, openai-compatible models, [pricing], [scope], sandbox images and network, pr, state_dir, [output] dir and 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-available and counts toward --fail-on. It used to be fixed and 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, doctor and debug reject flags they used to accept and ignore (exit code 2). Drop the flag.
  • spackle verify runs 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/config sets a filter, diff or merge driver is scanned as a plain directory.
  • --offline together with --pr is 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 doctor shows 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> --staged reports 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.yaml lets pre-commit users add Spackle with repo: and rev:, and docs/ci.md now shows the hook with --staged.
  • Reports split the model calls, tokens and cost by pipeline stage, with the models each stage used (a Stage line per stage, and usage.by_stage in the JSON report), so the effect of per-stage models on a budget can be seen. spackle runs shows each run's model spend, and runs --format json and the MCP list_runs tool return it as cost_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 status accepted and the entry's reason, but does not fail on it; SARIF marks it with an external suppression. Entries match by fingerprint, so code that only moved stays accepted, and may carry an expires date. 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 compare and the MCP compare_runs tool 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 fingerprint spackle/content/v1.
  • The MCP scan tool takes since (a git revision) and changed (uncommitted work), so a coding agent can ask what its change introduced, and a read-only compare_runs tool 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: command runs the whole suite (the scan's baseline and patched test runs, and the suite check after a fix in spackle debug), and single runs one test for spackle debug --test, with {name} replaced by the test name. Projects on Jest, Vitest or Mocha, or whose tests run through make or tox, 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 scan tool takes dry_run: true, which returns the plan and the cost estimate of the scan, as spackle scan --dry-run shows them, without calling a model or storing a run.
  • spackle scan <directory> --changed reports 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.md shows 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_rules names something that looks like a built-in id but matches none, such as a typo.
  • [output] fail_on_confidence (also --fail-on-confidence and the Action input fail-on-confidence) sets the lowest confidence a finding needs to count toward fail_on: plausible (the default, every finding, as before), high or demonstrated. 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, include reads a directory that is skipped by default, and disable_rules drops the leads of a rule. The report lists what was excluded.
  • spackle verify --format json prints 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-dir and the per-severity counts critical, high, medium and low, and the input upload-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 output has-sarif.
  • spackle doctor --format json prints the checks as JSON, with the same rows the MCP doctor tool 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 the diff-base input, which needs a checkout with fetch-depth: 0.
  • [scan] scanners chooses 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 in spackle 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 the diff-scope input, and the MCP scan tool as diff_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 --force is passed. A scan that stops on its budget prints the command.
  • spackle scan --dry-run shows 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 runs lists the stored runs, and spackle 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 ...
Read more

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 23:48
v0.1.0
35948f7

Changelog

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