From 225e29423a80477fbc05c4215f801012589e9f72 Mon Sep 17 00:00:00 2001 From: Rafael Franco Date: Thu, 11 May 2023 18:26:07 -0300 Subject: [PATCH] fix: use secrets --- .github/workflows/streak-keeper.yml | 4 ++-- index.js | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/streak-keeper.yml b/.github/workflows/streak-keeper.yml index 78a781a..202bdea 100644 --- a/.github/workflows/streak-keeper.yml +++ b/.github/workflows/streak-keeper.yml @@ -8,8 +8,8 @@ on: # - cron: '0 9 * * *' env: - DUOLINGO_USER_ID: '123' - DUOLINGO_JWT: 'abc' + DUOLINGO_USER_ID: ${{ secrets.DUOLINGO_USER_ID }} + DUOLINGO_JWT: ${{ secrets.DUOLINGO_JWT }} jobs: study: diff --git a/index.js b/index.js index bf76786..a50e820 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,3 @@ -console.log(process.env) - const headers = { 'Content-Type': 'application/json', Authorization: `Bearer ${process.env.DUOLINGO_JWT}`,