github kenryu42/cc-safety-net v2.7.11

one hour ago

Fixes a false denial where a quoted heredoc passed to a data sink was scanned as shell text whenever a wrapper or environment assignment preceded the sink.

Changed

  • Changed how CC_SAFETY_NET_PROJECT_TIGHTEN_ONLY=1 applies to the heredoc fix below: only transparent_wrappers declared in your own user policy relax it, so a wrapper declared solely by a repository policy keeps the heredoc body scanned.

Fixed

  • Fixed quoted heredocs being read as shell text when a wrapper or environment assignment sits in front of the data sink. A message or file body passed to cat, tee, git commit, or gh pr|issue create behind nohup, time, command, env, sudo, a bare assignment such as X=1, or a declared transparent_wrappers entry is now treated as data, so naming a path like .env.test in a commit message no longer triggers a secret block. (#346, #347)
    • Wrapper options are still not skipped, so forms a shell can execute — such as nohup sh <<'EOF', nohup cat <<'EOF' | sh, and env -S 'sh -s' cat <<'EOF' — remain blocked when the body reads a secret file.

Don't miss a new cc-safety-net release

NewReleases is sending notifications on new releases.