fix: remove token do Forgejo hardcoded dos scripts de deploy

Usa FORGEJO_TOKEN do ambiente em vez de valor fixo no código.
This commit is contained in:
Marcio Bevervanso 2026-07-02 20:17:33 -03:00
parent 6adf554553
commit 29615f7103
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,7 @@
import { execSync } from 'child_process';
const TOKEN = '53c0cc31a6cb27901dd29f1215d4ee5fe5064a19';
const TOKEN = process.env.FORGEJO_TOKEN;
if (!TOKEN) throw new Error('Defina FORGEJO_TOKEN no ambiente antes de rodar este script.');
const DOMAIN = 'forgejo.seureview.com.br';
const USER = 'marciobever';
const REPO = 'festa-magica-ia';

View file

@ -1,6 +1,7 @@
import { execSync } from 'child_process';
const TOKEN = '53c0cc31a6cb27901dd29f1215d4ee5fe5064a19';
const TOKEN = process.env.FORGEJO_TOKEN;
if (!TOKEN) throw new Error('Defina FORGEJO_TOKEN no ambiente antes de rodar este script.');
const DOMAIN = 'forgejo.seureview.com.br';
const USER = 'marciobever';
const REPO = 'festa-magica-ia';