From a2cfd909fa55bed9e0f100a960316b085e44f811 Mon Sep 17 00:00:00 2001 From: Jaclyn Taroni <19534205+jaclyn-taroni@users.noreply.github.com> Date: Tue, 8 Aug 2023 08:59:01 -0400 Subject: [PATCH] Use 1Password to manage secrets --- .github/workflows/cron.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index ca5b0b1..8f6e5c3 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -25,9 +25,17 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt + - name: Load 1Password secrets + uses: 1password/load-secrets-action@v1 + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_DOCS_BOT_SERVICE_TOKEN }} + DOCS_BOT_GITHUB_TOKEN: ${{ secrets.OP_DOCS_BOT_GITHUB_TOKEN }} + - name: Run Upkeep run: > python upkeep.py \ --repository="AlexsLemonade/scrum" \ - --token="${{ secrets.DOCS_BOT_GITHUB_TOKEN }}" \ + --token="${{ env.DOCS_BOT_GITHUB_TOKEN }}" \ --workdays-ahead=1