You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,9 @@ To publish after source visibility/review access is resolved and ClawHub login i
135
135
npm run clawhub:publish
136
136
```
137
137
138
-
Optional environment variables for publishing are `CLAWHUB_OWNER`, `CLAWHUB_CHANGELOG`, `CLAWHUB_SOURCE_REPO`, `CLAWHUB_SOURCE_REF`, and `CLAWHUB_CLAWSCAN_NOTE`.
138
+
The publish wrapper refuses to publish while the source repository is private. Set `CLAWHUB_ALLOW_PRIVATE_SOURCE=1` only if ClawHub has approved a private-source review path for this package.
139
+
140
+
Optional environment variables for publishing are `CLAWHUB_OWNER`, `CLAWHUB_CHANGELOG`, `CLAWHUB_SOURCE_REPO`, `CLAWHUB_SOURCE_REF`, `CLAWHUB_CLAWSCAN_NOTE`, and `CLAWHUB_ALLOW_PRIVATE_SOURCE`.
Copy file name to clipboardExpand all lines: docs/CLAWHUB_READINESS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,3 +88,5 @@ Gateway auth rate limiting is configured:
88
88
## Deployment Decision
89
89
90
90
Do not publish this package publicly to ClawHub while the repository remains private unless ClawHub has an approved private-source review workflow for this owner.
91
+
92
+
`npm run clawhub:publish` enforces that decision by refusing private-source publishing unless `CLAWHUB_ALLOW_PRIVATE_SOURCE=1` is set after review access is approved.
||"Mautic plugin uses network access for Mautic REST API calls, an optional token-protected private console bridge, and opt-in workspace staging under a guarded root. Production defaults disable maintenance, automation, and workspace file access.";
48
55
56
+
if(publish){
57
+
constvisibility=repoVisibility(sourceRepo);
58
+
if(visibility!=="PUBLIC"&&!allowPrivateSource){
59
+
thrownewError(
60
+
`Refusing to publish because source repo ${sourceRepo} visibility is ${visibility}. `
61
+
+"Make the repo public or set CLAWHUB_ALLOW_PRIVATE_SOURCE=1 only after ClawHub has approved a private-source review path.",
0 commit comments