gitback-cache-bucket-1 / 14790897__auto-read-liunxdo /73dab1d1e48c9cd5db973e76e6f9bd1936e895dc.json
Onyxl's picture
Snapshot: 14790897/auto-read-liunxdo@73dab1d
8d4f332 verified
Raw History Blame Contribute Delete
5.25 kB
{
"sha": "73dab1d1e48c9cd5db973e76e6f9bd1936e895dc",
"message": "feat: hide account names in action logs by default (HIDE_ACCOUNT_INFO)\n\nCo-authored-by: 14790897 <121866954+14790897@users.noreply.github.com>",
"author": "copilot-swe-agent[bot]",
"date": "2026-03-01T04:29:35Z",
"files": [
{
"filename": ".env",
"status": "modified",
"additions": 2,
"deletions": 0,
"patch": "@@ -6,6 +6,8 @@ PASSWORDS=.JSn6qQPKjsLx@@ # \u5bc6\u7801\u5916\u9762\u8981\u52a0\u4e0a\u53cc\u5f15\u53f7,\u5bc6\u7801\u5185\u90e8\u5982\u679c\u6709\n WEBSITE=https://linux.do # \u9700\u8981\u9605\u8bfb\u7684\u7f51\u7ad9\uff0c\u652f\u6301\u540e\u9762\u90a3\u4e9b\uff1ahttps://meta.discourse.org, https://meta.appinn.net, https://community.openai.com\n # \u662f\u5426\u5f00\u542f\u81ea\u52a8\u70b9\u8d5e\n AUTO_LIKE=true\n+# \u662f\u5426\u5728\u65e5\u5fd7\u4e2d\u9690\u85cf\u8d26\u53f7\u540d\uff08\u9ed8\u8ba4\u4e3atrue\uff0c\u5373\u9690\u85cf\u8d26\u53f7\u540d\uff1b\u8bbe\u7f6e\u4e3afalse\u53ef\u663e\u793a\u5b8c\u6574\u8d26\u53f7\u540d\uff09\n+HIDE_ACCOUNT_INFO=true\n #\u8fd0\u884c\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u5206\u949f\n RUN_TIME_LIMIT_MINUTES=20\n # \u6bcf\u6279\u6700\u591a\u540c\u65f6\u8fd0\u884c\u7684\u8d26\u53f7\u6570"
},
{
"filename": "GITHUB_SECRETS_GUIDE.md",
"status": "modified",
"additions": 1,
"deletions": 0,
"patch": "@@ -10,6 +10,7 @@\n # \n # \u3010\u529f\u80fd\u5f00\u5173\u3011(\u53ef\u9009)\n # AUTO_LIKE - \u662f\u5426\u81ea\u52a8\u70b9\u8d5e (true/false\uff0c\u9ed8\u8ba4: true)\n+# HIDE_ACCOUNT_INFO - \u662f\u5426\u5728\u65e5\u5fd7\u4e2d\u9690\u85cf\u8d26\u53f7\u540d (true/false\uff0c\u9ed8\u8ba4: true\uff0c\u5373\u9690\u85cf)\n # LIKE_SPECIFIC_USER - \u662f\u5426\u53ea\u70b9\u8d5e\u7279\u5b9a\u7528\u6237 (true/false\uff0c\u9ed8\u8ba4: false)\n # ENABLE_RSS_FETCH - \u662f\u5426\u5f00\u542fRSS\u6293\u53d6 (true/false\uff0c\u9ed8\u8ba4: false)\n # ENABLE_TOPIC_DATA_FETCH - \u662f\u5426\u5f00\u542f\u8bdd\u9898\u6570\u636e\u6293\u53d6 (true/false\uff0c\u9ed8\u8ba4: false)"
},
{
"filename": "bypasscf.js",
"status": "modified",
"additions": 14,
"deletions": 6,
"patch": "@@ -87,9 +87,17 @@ const delayBetweenBatches =\n runTimeLimitMillis / Math.ceil(totalAccounts / maxConcurrentAccounts);\n const isLikeSpecificUser = process.env.LIKE_SPECIFIC_USER === \"true\"; // \u53ea\u6709\u660e\u786e\u8bbe\u7f6e\u4e3a\"true\"\u624d\u5f00\u542f\n const isAutoLike = process.env.AUTO_LIKE !== \"false\"; // \u9ed8\u8ba4\u5f00\u542f\uff0c\u53ea\u6709\u660e\u786e\u8bbe\u7f6e\u4e3a\"false\"\u624d\u5173\u95ed\n+const hideAccountInfo = process.env.HIDE_ACCOUNT_INFO !== \"false\"; // \u9ed8\u8ba4\u9690\u85cf\u8d26\u53f7\u4fe1\u606f\uff0c\u53ea\u6709\u660e\u786e\u8bbe\u7f6e\u4e3a\"false\"\u624d\u663e\u793a\n const enableRssFetch = process.env.ENABLE_RSS_FETCH === \"true\"; // \u662f\u5426\u5f00\u542f\u6293\u53d6RSS\uff0c\u53ea\u6709\u660e\u786e\u8bbe\u7f6e\u4e3a\"true\"\u624d\u5f00\u542f\uff0c\u9ed8\u8ba4\u4e3afalse\n const enableTopicDataFetch = process.env.ENABLE_TOPIC_DATA_FETCH === \"true\"; // \u662f\u5426\u5f00\u542f\u6293\u53d6\u8bdd\u9898\u6570\u636e\uff0c\u53ea\u6709\u660e\u786e\u8bbe\u7f6e\u4e3a\"true\"\u624d\u5f00\u542f\uff0c\u9ed8\u8ba4\u4e3afalse\n \n+// \u8d26\u53f7\u540d\u8131\u654f\u51fd\u6570\uff0c\u9ed8\u8ba4\u4ec5\u663e\u793a\u9996\u5b57\u6bcd\u52a0***\n+function maskUsername(username) {\n+ if (!hideAccountInfo) return username;\n+ if (!username || username.length === 0) return \"***\";\n+ return username[0] + \"***\";\n+}\n+\n console.log(\n `RSS\u6293\u53d6\u529f\u80fd\u72b6\u6001: ${enableRssFetch ? \"\u5f00\u542f\" : \"\u5173\u95ed\"} (\u73af\u5883\u53d8\u91cf\u503c: \"${process.env.ENABLE_RSS_FETCH || ''}\")\uff0c\u52ff\u8bbe\u7f6e`\n );\n@@ -275,7 +283,7 @@ function delayClick(time) {\n async function launchBrowserForUser(username, password) {\n let browser = null; // \u5728 try \u4e4b\u5916\u58f0\u660e browser \u53d8\u91cf\n try {\n- console.log(\"\u5f53\u524d\u7528\u6237:\", username);\n+ console.log(\"\u5f53\u524d\u7528\u6237:\", maskUsername(username));\n const browserOptions = {\n headless: \"auto\",\n args: [\"--no-sandbox\", \"--disable-setuid-sandbox\"], // Linux \u9700\u8981\u7684\u5b89\u5168\u8bbe\u7f6e\n@@ -287,7 +295,7 @@ async function launchBrowserForUser(username, password) {\n const proxyArgs = getPuppeteerProxyArgs(proxyConfig);\n browserOptions.args.push(...proxyArgs);\n console.log(\n- `\u4e3a\u7528\u6237 ${username} \u542f\u7528\u4ee3\u7406: ${proxyConfig.type}://${proxyConfig.host}:${proxyConfig.port}`\n+ `\u4e3a\u7528\u6237 ${maskUsername(username)} \u542f\u7528\u4ee3\u7406: ${proxyConfig.type}://${proxyConfig.host}:${proxyConfig.port}`\n );\n \n // \u5982\u679c\u6709\u7528\u6237\u540d\u5bc6\u7801\uff0cpuppeteer-real-browser\u4f1a\u81ea\u52a8\u5904\u7406\n@@ -467,7 +475,7 @@ async function launchBrowserForUser(username, password) {\n console.warn(`Post-navigation inject failed: ${e && e.message ? e.message : e}`);\n }\n if (token && chatId) {\n- sendToTele"
}
],
"_from_cache": false
}