Skip to content

Commit

Permalink
Add secret token
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Aug 27, 2024
1 parent 8841612 commit da1cb2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion policyengine_us_data/utils/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')}",
}


Expand Down

0 comments on commit da1cb2c

Please sign in to comment.