From da1cb2ca08f735eaa906ffc83550e2affbe56591 Mon Sep 17 00:00:00 2001 From: Nikhil Woodruff Date: Tue, 27 Aug 2024 15:13:16 +0200 Subject: [PATCH] Add secret token --- .github/workflows/pull_request.yaml | 2 ++ policyengine_us_data/utils/github.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index e03cc21..56f8255 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -9,6 +9,8 @@ jobs: build: name: Test runs-on: ubuntu-latest + env: + POLICYENGINE_US_DATA_GITHUB_TOKEN: ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }} steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/policyengine_us_data/utils/github.py b/policyengine_us_data/utils/github.py index 7e08c43..f9f5ce2 100644 --- a/policyengine_us_data/utils/github.py +++ b/policyengine_us_data/utils/github.py @@ -2,7 +2,7 @@ import requests auth_headers = { - "Authorization": f"token {os.environ['GITHUB_TOKEN']}", + "Authorization": f"token {os.environ.get('POLICYENGINE_US_DATA_GITHUB_TOKEN')}", }