Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

fix: downgrade GitHub Actions secret sync failure from console.error to informational log

valzor5912abc8341f
diff --git a/backend/services/github.js b/backend/services/github.js
index ba21610..f7bdeda 100644
--- a/backend/services/github.js
+++ b/backend/services/github.js
@@ -128,7 +128,8 @@ async function syncAccountsSecretToGitHub() {
headers: { Authorization: `token ${gh.token}`, 'User-Agent': 'SocialMediaDashboard' }
});
if (!pkRes.ok) {
- console.error(' ☁️ Failed to get GitHub public key:', (await pkRes.json()).message);
+ const msg = (await pkRes.json()).message || pkRes.status;
+ console.log(` ☁️ Skipping ACCOUNTS_JSON secret sync (${msg}). Grant "Secrets: Read and write" on your PAT to enable this.`);
return;
}
const { key: publicKey, key_id } = await pkRes.json();