Skip to content

Release v7.150.2

Choose a tag to compare

@github-actions github-actions released this 10 Nov 07:16
9c336dd

Hook change: run cratis ai update in each consuming repository to pick up the new guard behavior.

Fixed

  • The shell write guard classifies only write-target words as protected references, so read-only awk, jq, cat, ls and similar commands with braces or brackets in their program text are no longer refused; commands it cannot parse stay fail-closed, and extended globs and quoted brace spans in write targets are refused (#1041)
  • ls *.csproj, git ls-files *.csproj and similar read-only glob arguments to cat, head, tail, wc, ls, grep and git ls-files are allowed again; writes to dotfile-shaped targets stay refused (#1083)
  • jq filters with [/] and {/}, for example jq '{a: .[0]}', no longer fail the guard's parser (part of #1052)
  • node .cratis/ai/hooks/scripts/cratis-check-pr.mjs and bash .cratis/ai/hooks/scripts/cratis-cleanup-worktrees.sh with their documented options pass the shell write guard in consuming repositories, while writes to those files stay refused; paths built from variables are not resolved, as the hooks README now states (#1024)
  • The secrets guard treats .env as a protected file only as a whole file stem, so names such as Org.DS.EnvironmentalReporting, Cratis.Environments.Specs and *.environment.txt are no longer refused; .env, .env.local, app.env and .envrc stay protected (#1019)
  • The pinned Screenplay contract is updated to 6.11.0, and the MCP tools reference now lists all 48 tools, including list-storylines.

Security

  • The secrets guard refuses jq, yq, gojq, jaq and awk-family commands when any word holds an environment-access identifier (env, $ENV, ENVIRON, strenv, envsubst, getenv, PROCINFO) as a whole token, as it already refuses env, printenv and export -p; names such as environment stay readable.
  • The secrets guard protects backup and variant copies of env files such as app.env.old, prod.env.local and config/app.env~; .env.example-style templates, source, project and markup files, and names such as Org.DS.EnvironmentalReporting stay readable.
  • The shell write guard judges a write-target word that carries $, backticks, ~ or parentheses by every suffix after a slash, so $PWD/.cratis/..., $(pwd -P)/.mcp.json and ~+/.mcp.json are treated like the protected relative path; the hooks README states the remaining limits.