← back to browse
goat command grade A

settoken

No description

1
views
0
likes
1
installs
analysis โ€” static scan, nothing executed
0 grade A
Review recommended โ€” some behaviour worth a look
Security 96
Privacy 84
Quality 100
Maintenance 82
Community 8
medium Reads secrets from environment variables

Accesses process.env values that look like tokens, passwords, API keys or database URLs.

L40process.env.GITHUB_TOKEN = newToken.trim();
low Filesystem access

Reads or writes files on the machine running the bot.

L3const fs = require("fs-extra");
low Environment variable access

Reads process.env. Fine on its own; worth a look if the values are sent anywhere.

L40process.env.GITHUB_TOKEN = newToken.trim();
capabilities โ€” what this file can do, regardless of intent
Network Filesystem Shell Env vars Dynamic code Session data Installs packages Process control
dependencies

fs-extra

checks
Exports a command/module
Handles errors (try/catch or .catch)
Readable, not minified
Has explanatory comments
No deprecated dependencies
Reasonable size (< 200 KB)
raw source โ€” loaded on demand
Loading sourceโ€ฆ

View raw file · View analysis as JSON