Skip to content

Commit

Permalink
Merge pull request #7 from AlexsLemonade/jaclyn-taroni/migrate-to-op
Browse files Browse the repository at this point in the history
Use OP to manage tokens
  • Loading branch information
jaclyn-taroni authored Aug 8, 2023
2 parents 1128e76 + a2cfd90 commit 7cf5b3a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7cf5b3a

Please sign in to comment.