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')}", }