token-hygiene: `cat .env.local 2>/dev/null` counts as redacted
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- security, typescript
Rechercherichtung
Start in .claude/hooks/repo/token-hygiene/index.mts, where any > in a command is treated as a redaction step, and the .env read rule matches only bat|cat|head|less|more|tail. First confirm whether fleet/index.cjs loads this file or a synced copy, since that decides where the fix goes. Done means cat .env.local 2>/dev/null and cat .env.local 2>&1 are blocked, other readers of .env files are caught, and existing hook tests still pass.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
In .claude/hooks/repo/token-hygiene/index.mts, any > in the command counts as a redaction step, so cat .env.local 2>/dev/null and cat .env.local 2>&1 are allowed while still printing every value to stdout. The .env read rule also only names bat|cat|head|less|more|tail, so other readers of the same file pass it.
I checked the rules in this file against our spellings by copying its patterns; I couldn't tell from the repo whether fleet/index.cjs runs this file or its own copy, so this may apply only to the copies synced to other repos. Happy to send the full list and a PR. I build Paveo, an open-source test for agent guards: uvx paveo test runs a repo's hooks the way Claude Code calls them.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 335
- Forks
- 74
- Ø Merge
- 1 T. 11 Std.
- Gemergte PRs (30 T.)
- 91
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus SocketDev/socket-cli
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
SocketDev/socket-cli#1655 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
SocketDev/socket-cli#1160 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
SocketDev/socket-cli#1691 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 22/100
SocketDev/socket-cli#1689 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
SocketDev/socket-cli#1688 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in SocketDev/socket-cli
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
riverqueue/river#1576 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[bug] A prompt queued during a run is assessed without its textEvtl. vergeben @jwiegley hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DevMortimer/pi-warden#211 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
mattermost/compass-design#191 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add unit tests for the organization admin role checkEvtl. vergeben @SaffuSafwan hat das heute übernommen. Offenarea/core good first issue help wanted
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
elmohq/elmo#1095 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
HorusGoul/trizum#559 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag