@codyswann/lisa 2.336.0 → 2.336.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/all/copy-overwrite/scripts/lisa-hooks/sonar-secrets.sh +25 -23
  2. package/dist/core/upstream-evidence-manifest.js +2 -2
  3. package/package.json +1 -1
  4. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  5. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  6. package/plugins/lisa/hooks/sonar-secrets.sh +25 -23
  7. package/plugins/lisa-agy/plugin.json +1 -1
  8. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  9. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  10. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  11. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  12. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa-copilot/hooks/sonar-secrets.sh +25 -23
  15. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa-cursor/hooks/sonar-secrets.sh +25 -23
  17. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  19. package/plugins/lisa-expo-agy/plugin.json +1 -1
  20. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  21. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  24. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  25. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  29. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  30. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  34. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  35. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  39. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  40. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  44. package/plugins/lisa-rails-agy/plugin.json +1 -1
  45. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  49. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  50. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  54. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  55. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  57. package/plugins/src/base/hooks/sonar-secrets.sh +25 -23
@@ -39,7 +39,7 @@
39
39
  set -uo pipefail
40
40
 
41
41
  event="${1:-}"
42
- [ -n "$event" ] || exit 0
42
+ [[ -n "$event" ]] || exit 0
43
43
 
44
44
  # Nothing installed, nothing to enforce. Matches the vendor shim's own guard.
45
45
  command -v sonar >/dev/null 2>&1 || exit 0
@@ -48,7 +48,7 @@ command -v sonar >/dev/null 2>&1 || exit 0
48
48
  # deliberately no way to turn the *blocking* back on from the environment: the
49
49
  # decision that a missing token must not stop work belongs in this file, where it
50
50
  # is reviewable, not in whatever shell happened to launch the agent.
51
- [ "${LISA_SONAR_HOOK:-on}" = "off" ] && exit 0
51
+ [[ "${LISA_SONAR_HOOK:-on}" == "off" ]] && exit 0
52
52
 
53
53
  payload="$(cat)"
54
54
 
@@ -68,23 +68,25 @@ is_inactive() {
68
68
  }
69
69
 
70
70
  # Run the resolver with a ceiling, because the provider call crosses the network
71
- # and this sits in front of every prompt and every file read. `timeout` is not
72
- # present on a stock macOS, so this is the portable equivalent: start it, poll,
73
- # give up. Giving up is safe — the caller treats an empty value as "the provider
74
- # had nothing", which lands on the warn path rather than a block.
71
+ # and this sits in front of every prompt and every file read.
72
+ #
73
+ # The value never touches the filesystem. An earlier version captured it through
74
+ # `mktemp` and deleted the file afterwards, which is a race, not a cleanup: a
75
+ # kill between the write and the `rm` leaves the token readable on disk (CWE-922)
76
+ # — the precise failure the one-store rule in lisa-secrets-access exists to
77
+ # prevent, reintroduced by the code enforcing it. Process substitution gives a
78
+ # `/dev/fd` pipe instead, so there is no path on disk to leak and nothing to
79
+ # clean up on any exit path, signalled or not.
80
+ #
81
+ # `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
82
+ # `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
83
+ # portable form. A timeout leaves `value` empty, which the caller treats as "the
84
+ # provider had nothing" — the warn path, never a block. `|| true` because `read`
85
+ # also reports failure at EOF on the resolver's deliberately unterminated output.
75
86
  resolve_secret() {
76
- local resolver="$1" name="$2" out pid waited=0
77
- out="$(mktemp)" || return 0
78
- node "$resolver" get "$name" >"$out" 2>/dev/null &
79
- pid=$!
80
- while kill -0 "$pid" 2>/dev/null; do
81
- [ "$waited" -ge 10 ] && { kill -9 "$pid" 2>/dev/null; break; }
82
- sleep 1
83
- waited=$((waited + 1))
84
- done
85
- wait "$pid" 2>/dev/null
86
- cat "$out"
87
- rm -f "$out"
87
+ local resolver="$1" name="$2" value=""
88
+ IFS= read -r -t 10 value < <(node "$resolver" get "$name" 2>/dev/null) || true
89
+ printf '%s' "$value"
88
90
  }
89
91
 
90
92
  out="$(run_scanner)"
@@ -103,21 +105,21 @@ if is_inactive "$out"; then
103
105
  "$repo_root/.codex/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
104
106
  "$repo_root/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
105
107
  "$repo_root/node_modules/@codyswann/lisa/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs"; do
106
- if [ -f "$candidate" ]; then
108
+ if [[ -f "$candidate" ]]; then
107
109
  resolver="$candidate"
108
110
  break
109
111
  fi
110
112
  done
111
113
 
112
- if [ -n "$resolver" ] && command -v node >/dev/null 2>&1; then
114
+ if [[ -n "$resolver" ]] && command -v node >/dev/null 2>&1; then
113
115
  token="$(resolve_secret "$resolver" SONARQUBE_CLI_TOKEN)"
114
- if [ -n "$token" ]; then
116
+ if [[ -n "$token" ]]; then
115
117
  # Exported into this process only. Writing it anywhere durable would create
116
118
  # a second live copy of a credential whose single store is the provider —
117
119
  # see the one-store rule in lisa-secrets-access.
118
120
  export SONARQUBE_CLI_TOKEN="$token"
119
121
  org="$(resolve_secret "$resolver" SONARQUBE_CLI_ORG)"
120
- [ -n "$org" ] && export SONARQUBE_CLI_ORG="$org"
122
+ [[ -n "$org" ]] && export SONARQUBE_CLI_ORG="$org"
121
123
  out="$(run_scanner)"
122
124
  fi
123
125
  unset token org
@@ -135,5 +137,5 @@ if is_inactive "$out"; then
135
137
  exit 0
136
138
  fi
137
139
 
138
- [ -n "$out" ] && printf '%s' "$out"
140
+ [[ -n "$out" ]] && printf '%s' "$out"
139
141
  exit 0
@@ -9,7 +9,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
9
9
  "all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh": "a6ed91576efebb6ba40cfa4e9d8a3e8566314909210ae8d5860be62a3feb4cff",
10
10
  "all/copy-overwrite/scripts/lisa-hooks/block-shell-json-parsing.sh": "3b5f074f3ab5708030af507eea962389f3b067c5dbdc76580bd9e44d3ac6c603",
11
11
  "all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh": "062c69eea85157f1e941ec3626d8912aa9f182af6ccdbe19687588a6074db5ce",
12
- "all/copy-overwrite/scripts/lisa-hooks/sonar-secrets.sh": "7a408788975a6351d53e14aa32bb9a5d161f33df9dfea59ba32784ae33a62e67",
12
+ "all/copy-overwrite/scripts/lisa-hooks/sonar-secrets.sh": "945453fb275a58aa7185e150e6b05e5810739750928ab5bd6edfbf87d1c8aa0d",
13
13
  "all/copy-overwrite/scripts/lisa-work-item.mjs": "6a8be8577242588f14ab52b25b2a22b6def53aefa9513b4d3d7c49f4d8027079",
14
14
  "all/create-only/.claude/rules/PROJECT_RULES.md": "6e1c7923ad2a15356babc60c97e7f97be728d790af285b6a7cd7d1b4d39cd97f",
15
15
  "all/create-only/.lisaignore": "3c9827e7e98daa46510b5357cd6dd9406da1821e64cc46d2eea9f311cd6d06b9",
@@ -313,7 +313,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
313
313
  "plugins/src/base/hooks/parity-safety-net.sh": "062c69eea85157f1e941ec3626d8912aa9f182af6ccdbe19687588a6074db5ce",
314
314
  "plugins/src/base/hooks/setup-jira-cli.sh": "a675f6b17ce7f0d6b9fb7daeba6d2bc59bcb48ef79b034076ea73b2b1e72ee09",
315
315
  "plugins/src/base/hooks/shell-write-nudge.sh": "69839af423f8792b1e52c71097316c3264425553031627c0a2f9409a9d5becd0",
316
- "plugins/src/base/hooks/sonar-secrets.sh": "7a408788975a6351d53e14aa32bb9a5d161f33df9dfea59ba32784ae33a62e67",
316
+ "plugins/src/base/hooks/sonar-secrets.sh": "945453fb275a58aa7185e150e6b05e5810739750928ab5bd6edfbf87d1c8aa0d",
317
317
  "plugins/src/base/hooks/threshold-ratchet-compare.mjs": "4535a145c5c5cbee13bdf970bc91d390a264043604e607288cdd6bf28de56192",
318
318
  "plugins/src/base/hooks/threshold-ratchet-families.mjs": "db14245ed89b483912af287bdee917a7a921dc21bb29b49be37fc799c05c413f",
319
319
  "plugins/src/base/hooks/threshold-ratchet.mjs": "04f660131bf50864239eb09cbf4d9555e53921254f6ab45ff2b85c173e160901",
package/package.json CHANGED
@@ -115,7 +115,7 @@
115
115
  "brace-expansion": ">=5.0.9"
116
116
  },
117
117
  "name": "@codyswann/lisa",
118
- "version": "2.336.0",
118
+ "version": "2.336.1",
119
119
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
120
120
  "main": "dist/index.js",
121
121
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -39,7 +39,7 @@
39
39
  set -uo pipefail
40
40
 
41
41
  event="${1:-}"
42
- [ -n "$event" ] || exit 0
42
+ [[ -n "$event" ]] || exit 0
43
43
 
44
44
  # Nothing installed, nothing to enforce. Matches the vendor shim's own guard.
45
45
  command -v sonar >/dev/null 2>&1 || exit 0
@@ -48,7 +48,7 @@ command -v sonar >/dev/null 2>&1 || exit 0
48
48
  # deliberately no way to turn the *blocking* back on from the environment: the
49
49
  # decision that a missing token must not stop work belongs in this file, where it
50
50
  # is reviewable, not in whatever shell happened to launch the agent.
51
- [ "${LISA_SONAR_HOOK:-on}" = "off" ] && exit 0
51
+ [[ "${LISA_SONAR_HOOK:-on}" == "off" ]] && exit 0
52
52
 
53
53
  payload="$(cat)"
54
54
 
@@ -68,23 +68,25 @@ is_inactive() {
68
68
  }
69
69
 
70
70
  # Run the resolver with a ceiling, because the provider call crosses the network
71
- # and this sits in front of every prompt and every file read. `timeout` is not
72
- # present on a stock macOS, so this is the portable equivalent: start it, poll,
73
- # give up. Giving up is safe — the caller treats an empty value as "the provider
74
- # had nothing", which lands on the warn path rather than a block.
71
+ # and this sits in front of every prompt and every file read.
72
+ #
73
+ # The value never touches the filesystem. An earlier version captured it through
74
+ # `mktemp` and deleted the file afterwards, which is a race, not a cleanup: a
75
+ # kill between the write and the `rm` leaves the token readable on disk (CWE-922)
76
+ # — the precise failure the one-store rule in lisa-secrets-access exists to
77
+ # prevent, reintroduced by the code enforcing it. Process substitution gives a
78
+ # `/dev/fd` pipe instead, so there is no path on disk to leak and nothing to
79
+ # clean up on any exit path, signalled or not.
80
+ #
81
+ # `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
82
+ # `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
83
+ # portable form. A timeout leaves `value` empty, which the caller treats as "the
84
+ # provider had nothing" — the warn path, never a block. `|| true` because `read`
85
+ # also reports failure at EOF on the resolver's deliberately unterminated output.
75
86
  resolve_secret() {
76
- local resolver="$1" name="$2" out pid waited=0
77
- out="$(mktemp)" || return 0
78
- node "$resolver" get "$name" >"$out" 2>/dev/null &
79
- pid=$!
80
- while kill -0 "$pid" 2>/dev/null; do
81
- [ "$waited" -ge 10 ] && { kill -9 "$pid" 2>/dev/null; break; }
82
- sleep 1
83
- waited=$((waited + 1))
84
- done
85
- wait "$pid" 2>/dev/null
86
- cat "$out"
87
- rm -f "$out"
87
+ local resolver="$1" name="$2" value=""
88
+ IFS= read -r -t 10 value < <(node "$resolver" get "$name" 2>/dev/null) || true
89
+ printf '%s' "$value"
88
90
  }
89
91
 
90
92
  out="$(run_scanner)"
@@ -103,21 +105,21 @@ if is_inactive "$out"; then
103
105
  "$repo_root/.codex/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
104
106
  "$repo_root/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
105
107
  "$repo_root/node_modules/@codyswann/lisa/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs"; do
106
- if [ -f "$candidate" ]; then
108
+ if [[ -f "$candidate" ]]; then
107
109
  resolver="$candidate"
108
110
  break
109
111
  fi
110
112
  done
111
113
 
112
- if [ -n "$resolver" ] && command -v node >/dev/null 2>&1; then
114
+ if [[ -n "$resolver" ]] && command -v node >/dev/null 2>&1; then
113
115
  token="$(resolve_secret "$resolver" SONARQUBE_CLI_TOKEN)"
114
- if [ -n "$token" ]; then
116
+ if [[ -n "$token" ]]; then
115
117
  # Exported into this process only. Writing it anywhere durable would create
116
118
  # a second live copy of a credential whose single store is the provider —
117
119
  # see the one-store rule in lisa-secrets-access.
118
120
  export SONARQUBE_CLI_TOKEN="$token"
119
121
  org="$(resolve_secret "$resolver" SONARQUBE_CLI_ORG)"
120
- [ -n "$org" ] && export SONARQUBE_CLI_ORG="$org"
122
+ [[ -n "$org" ]] && export SONARQUBE_CLI_ORG="$org"
121
123
  out="$(run_scanner)"
122
124
  fi
123
125
  unset token org
@@ -135,5 +137,5 @@ if is_inactive "$out"; then
135
137
  exit 0
136
138
  fi
137
139
 
138
- [ -n "$out" ] && printf '%s' "$out"
140
+ [[ -n "$out" ]] && printf '%s' "$out"
139
141
  exit 0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "AWS CDK-specific Lisa plugin.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -39,7 +39,7 @@
39
39
  set -uo pipefail
40
40
 
41
41
  event="${1:-}"
42
- [ -n "$event" ] || exit 0
42
+ [[ -n "$event" ]] || exit 0
43
43
 
44
44
  # Nothing installed, nothing to enforce. Matches the vendor shim's own guard.
45
45
  command -v sonar >/dev/null 2>&1 || exit 0
@@ -48,7 +48,7 @@ command -v sonar >/dev/null 2>&1 || exit 0
48
48
  # deliberately no way to turn the *blocking* back on from the environment: the
49
49
  # decision that a missing token must not stop work belongs in this file, where it
50
50
  # is reviewable, not in whatever shell happened to launch the agent.
51
- [ "${LISA_SONAR_HOOK:-on}" = "off" ] && exit 0
51
+ [[ "${LISA_SONAR_HOOK:-on}" == "off" ]] && exit 0
52
52
 
53
53
  payload="$(cat)"
54
54
 
@@ -68,23 +68,25 @@ is_inactive() {
68
68
  }
69
69
 
70
70
  # Run the resolver with a ceiling, because the provider call crosses the network
71
- # and this sits in front of every prompt and every file read. `timeout` is not
72
- # present on a stock macOS, so this is the portable equivalent: start it, poll,
73
- # give up. Giving up is safe — the caller treats an empty value as "the provider
74
- # had nothing", which lands on the warn path rather than a block.
71
+ # and this sits in front of every prompt and every file read.
72
+ #
73
+ # The value never touches the filesystem. An earlier version captured it through
74
+ # `mktemp` and deleted the file afterwards, which is a race, not a cleanup: a
75
+ # kill between the write and the `rm` leaves the token readable on disk (CWE-922)
76
+ # — the precise failure the one-store rule in lisa-secrets-access exists to
77
+ # prevent, reintroduced by the code enforcing it. Process substitution gives a
78
+ # `/dev/fd` pipe instead, so there is no path on disk to leak and nothing to
79
+ # clean up on any exit path, signalled or not.
80
+ #
81
+ # `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
82
+ # `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
83
+ # portable form. A timeout leaves `value` empty, which the caller treats as "the
84
+ # provider had nothing" — the warn path, never a block. `|| true` because `read`
85
+ # also reports failure at EOF on the resolver's deliberately unterminated output.
75
86
  resolve_secret() {
76
- local resolver="$1" name="$2" out pid waited=0
77
- out="$(mktemp)" || return 0
78
- node "$resolver" get "$name" >"$out" 2>/dev/null &
79
- pid=$!
80
- while kill -0 "$pid" 2>/dev/null; do
81
- [ "$waited" -ge 10 ] && { kill -9 "$pid" 2>/dev/null; break; }
82
- sleep 1
83
- waited=$((waited + 1))
84
- done
85
- wait "$pid" 2>/dev/null
86
- cat "$out"
87
- rm -f "$out"
87
+ local resolver="$1" name="$2" value=""
88
+ IFS= read -r -t 10 value < <(node "$resolver" get "$name" 2>/dev/null) || true
89
+ printf '%s' "$value"
88
90
  }
89
91
 
90
92
  out="$(run_scanner)"
@@ -103,21 +105,21 @@ if is_inactive "$out"; then
103
105
  "$repo_root/.codex/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
104
106
  "$repo_root/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
105
107
  "$repo_root/node_modules/@codyswann/lisa/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs"; do
106
- if [ -f "$candidate" ]; then
108
+ if [[ -f "$candidate" ]]; then
107
109
  resolver="$candidate"
108
110
  break
109
111
  fi
110
112
  done
111
113
 
112
- if [ -n "$resolver" ] && command -v node >/dev/null 2>&1; then
114
+ if [[ -n "$resolver" ]] && command -v node >/dev/null 2>&1; then
113
115
  token="$(resolve_secret "$resolver" SONARQUBE_CLI_TOKEN)"
114
- if [ -n "$token" ]; then
116
+ if [[ -n "$token" ]]; then
115
117
  # Exported into this process only. Writing it anywhere durable would create
116
118
  # a second live copy of a credential whose single store is the provider —
117
119
  # see the one-store rule in lisa-secrets-access.
118
120
  export SONARQUBE_CLI_TOKEN="$token"
119
121
  org="$(resolve_secret "$resolver" SONARQUBE_CLI_ORG)"
120
- [ -n "$org" ] && export SONARQUBE_CLI_ORG="$org"
122
+ [[ -n "$org" ]] && export SONARQUBE_CLI_ORG="$org"
121
123
  out="$(run_scanner)"
122
124
  fi
123
125
  unset token org
@@ -135,5 +137,5 @@ if is_inactive "$out"; then
135
137
  exit 0
136
138
  fi
137
139
 
138
- [ -n "$out" ] && printf '%s' "$out"
140
+ [[ -n "$out" ]] && printf '%s' "$out"
139
141
  exit 0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -39,7 +39,7 @@
39
39
  set -uo pipefail
40
40
 
41
41
  event="${1:-}"
42
- [ -n "$event" ] || exit 0
42
+ [[ -n "$event" ]] || exit 0
43
43
 
44
44
  # Nothing installed, nothing to enforce. Matches the vendor shim's own guard.
45
45
  command -v sonar >/dev/null 2>&1 || exit 0
@@ -48,7 +48,7 @@ command -v sonar >/dev/null 2>&1 || exit 0
48
48
  # deliberately no way to turn the *blocking* back on from the environment: the
49
49
  # decision that a missing token must not stop work belongs in this file, where it
50
50
  # is reviewable, not in whatever shell happened to launch the agent.
51
- [ "${LISA_SONAR_HOOK:-on}" = "off" ] && exit 0
51
+ [[ "${LISA_SONAR_HOOK:-on}" == "off" ]] && exit 0
52
52
 
53
53
  payload="$(cat)"
54
54
 
@@ -68,23 +68,25 @@ is_inactive() {
68
68
  }
69
69
 
70
70
  # Run the resolver with a ceiling, because the provider call crosses the network
71
- # and this sits in front of every prompt and every file read. `timeout` is not
72
- # present on a stock macOS, so this is the portable equivalent: start it, poll,
73
- # give up. Giving up is safe — the caller treats an empty value as "the provider
74
- # had nothing", which lands on the warn path rather than a block.
71
+ # and this sits in front of every prompt and every file read.
72
+ #
73
+ # The value never touches the filesystem. An earlier version captured it through
74
+ # `mktemp` and deleted the file afterwards, which is a race, not a cleanup: a
75
+ # kill between the write and the `rm` leaves the token readable on disk (CWE-922)
76
+ # — the precise failure the one-store rule in lisa-secrets-access exists to
77
+ # prevent, reintroduced by the code enforcing it. Process substitution gives a
78
+ # `/dev/fd` pipe instead, so there is no path on disk to leak and nothing to
79
+ # clean up on any exit path, signalled or not.
80
+ #
81
+ # `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
82
+ # `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
83
+ # portable form. A timeout leaves `value` empty, which the caller treats as "the
84
+ # provider had nothing" — the warn path, never a block. `|| true` because `read`
85
+ # also reports failure at EOF on the resolver's deliberately unterminated output.
75
86
  resolve_secret() {
76
- local resolver="$1" name="$2" out pid waited=0
77
- out="$(mktemp)" || return 0
78
- node "$resolver" get "$name" >"$out" 2>/dev/null &
79
- pid=$!
80
- while kill -0 "$pid" 2>/dev/null; do
81
- [ "$waited" -ge 10 ] && { kill -9 "$pid" 2>/dev/null; break; }
82
- sleep 1
83
- waited=$((waited + 1))
84
- done
85
- wait "$pid" 2>/dev/null
86
- cat "$out"
87
- rm -f "$out"
87
+ local resolver="$1" name="$2" value=""
88
+ IFS= read -r -t 10 value < <(node "$resolver" get "$name" 2>/dev/null) || true
89
+ printf '%s' "$value"
88
90
  }
89
91
 
90
92
  out="$(run_scanner)"
@@ -103,21 +105,21 @@ if is_inactive "$out"; then
103
105
  "$repo_root/.codex/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
104
106
  "$repo_root/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
105
107
  "$repo_root/node_modules/@codyswann/lisa/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs"; do
106
- if [ -f "$candidate" ]; then
108
+ if [[ -f "$candidate" ]]; then
107
109
  resolver="$candidate"
108
110
  break
109
111
  fi
110
112
  done
111
113
 
112
- if [ -n "$resolver" ] && command -v node >/dev/null 2>&1; then
114
+ if [[ -n "$resolver" ]] && command -v node >/dev/null 2>&1; then
113
115
  token="$(resolve_secret "$resolver" SONARQUBE_CLI_TOKEN)"
114
- if [ -n "$token" ]; then
116
+ if [[ -n "$token" ]]; then
115
117
  # Exported into this process only. Writing it anywhere durable would create
116
118
  # a second live copy of a credential whose single store is the provider —
117
119
  # see the one-store rule in lisa-secrets-access.
118
120
  export SONARQUBE_CLI_TOKEN="$token"
119
121
  org="$(resolve_secret "$resolver" SONARQUBE_CLI_ORG)"
120
- [ -n "$org" ] && export SONARQUBE_CLI_ORG="$org"
122
+ [[ -n "$org" ]] && export SONARQUBE_CLI_ORG="$org"
121
123
  out="$(run_scanner)"
122
124
  fi
123
125
  unset token org
@@ -135,5 +137,5 @@ if is_inactive "$out"; then
135
137
  exit 0
136
138
  fi
137
139
 
138
- [ -n "$out" ] && printf '%s' "$out"
140
+ [[ -n "$out" ]] && printf '%s' "$out"
139
141
  exit 0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Harper/Fabric-specific Lisa rules for TypeScript component apps.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "NestJS-specific skills and migration write-protection hooks.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Ruby on Rails-specific skills and hooks for RuboCop and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.336.0",
3
+ "version": "2.336.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -39,7 +39,7 @@
39
39
  set -uo pipefail
40
40
 
41
41
  event="${1:-}"
42
- [ -n "$event" ] || exit 0
42
+ [[ -n "$event" ]] || exit 0
43
43
 
44
44
  # Nothing installed, nothing to enforce. Matches the vendor shim's own guard.
45
45
  command -v sonar >/dev/null 2>&1 || exit 0
@@ -48,7 +48,7 @@ command -v sonar >/dev/null 2>&1 || exit 0
48
48
  # deliberately no way to turn the *blocking* back on from the environment: the
49
49
  # decision that a missing token must not stop work belongs in this file, where it
50
50
  # is reviewable, not in whatever shell happened to launch the agent.
51
- [ "${LISA_SONAR_HOOK:-on}" = "off" ] && exit 0
51
+ [[ "${LISA_SONAR_HOOK:-on}" == "off" ]] && exit 0
52
52
 
53
53
  payload="$(cat)"
54
54
 
@@ -68,23 +68,25 @@ is_inactive() {
68
68
  }
69
69
 
70
70
  # Run the resolver with a ceiling, because the provider call crosses the network
71
- # and this sits in front of every prompt and every file read. `timeout` is not
72
- # present on a stock macOS, so this is the portable equivalent: start it, poll,
73
- # give up. Giving up is safe — the caller treats an empty value as "the provider
74
- # had nothing", which lands on the warn path rather than a block.
71
+ # and this sits in front of every prompt and every file read.
72
+ #
73
+ # The value never touches the filesystem. An earlier version captured it through
74
+ # `mktemp` and deleted the file afterwards, which is a race, not a cleanup: a
75
+ # kill between the write and the `rm` leaves the token readable on disk (CWE-922)
76
+ # — the precise failure the one-store rule in lisa-secrets-access exists to
77
+ # prevent, reintroduced by the code enforcing it. Process substitution gives a
78
+ # `/dev/fd` pipe instead, so there is no path on disk to leak and nothing to
79
+ # clean up on any exit path, signalled or not.
80
+ #
81
+ # `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
82
+ # `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
83
+ # portable form. A timeout leaves `value` empty, which the caller treats as "the
84
+ # provider had nothing" — the warn path, never a block. `|| true` because `read`
85
+ # also reports failure at EOF on the resolver's deliberately unterminated output.
75
86
  resolve_secret() {
76
- local resolver="$1" name="$2" out pid waited=0
77
- out="$(mktemp)" || return 0
78
- node "$resolver" get "$name" >"$out" 2>/dev/null &
79
- pid=$!
80
- while kill -0 "$pid" 2>/dev/null; do
81
- [ "$waited" -ge 10 ] && { kill -9 "$pid" 2>/dev/null; break; }
82
- sleep 1
83
- waited=$((waited + 1))
84
- done
85
- wait "$pid" 2>/dev/null
86
- cat "$out"
87
- rm -f "$out"
87
+ local resolver="$1" name="$2" value=""
88
+ IFS= read -r -t 10 value < <(node "$resolver" get "$name" 2>/dev/null) || true
89
+ printf '%s' "$value"
88
90
  }
89
91
 
90
92
  out="$(run_scanner)"
@@ -103,21 +105,21 @@ if is_inactive "$out"; then
103
105
  "$repo_root/.codex/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
104
106
  "$repo_root/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs" \
105
107
  "$repo_root/node_modules/@codyswann/lisa/plugins/lisa/skills/lisa-secrets-access/scripts/resolve-secret.mjs"; do
106
- if [ -f "$candidate" ]; then
108
+ if [[ -f "$candidate" ]]; then
107
109
  resolver="$candidate"
108
110
  break
109
111
  fi
110
112
  done
111
113
 
112
- if [ -n "$resolver" ] && command -v node >/dev/null 2>&1; then
114
+ if [[ -n "$resolver" ]] && command -v node >/dev/null 2>&1; then
113
115
  token="$(resolve_secret "$resolver" SONARQUBE_CLI_TOKEN)"
114
- if [ -n "$token" ]; then
116
+ if [[ -n "$token" ]]; then
115
117
  # Exported into this process only. Writing it anywhere durable would create
116
118
  # a second live copy of a credential whose single store is the provider —
117
119
  # see the one-store rule in lisa-secrets-access.
118
120
  export SONARQUBE_CLI_TOKEN="$token"
119
121
  org="$(resolve_secret "$resolver" SONARQUBE_CLI_ORG)"
120
- [ -n "$org" ] && export SONARQUBE_CLI_ORG="$org"
122
+ [[ -n "$org" ]] && export SONARQUBE_CLI_ORG="$org"
121
123
  out="$(run_scanner)"
122
124
  fi
123
125
  unset token org
@@ -135,5 +137,5 @@ if is_inactive "$out"; then
135
137
  exit 0
136
138
  fi
137
139
 
138
- [ -n "$out" ] && printf '%s' "$out"
140
+ [[ -n "$out" ]] && printf '%s' "$out"
139
141
  exit 0