Skip to content

Commit

Permalink
Merge branch 'jwt_python' of github.e.it.census.gov:CSVD/automation-r…
Browse files Browse the repository at this point in the history
…epos into jwt_python
  • Loading branch information
arnol377 committed Oct 2, 2024
2 parents 1ab25be + 83785c7 commit 41b3579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
- name: Setup GITHUB Credentials
id: github_credentials
run:
python encode_jwt.py "${{ secrets.GITHUB_APP_PEM_FILE }}" "${{ vars.GITHUB_APP_INSTALLATION_ID }}" https://github.e.it.census.gov/" #>> $GITHUB_ENV
run: |
echo GITHUB_TOKEN=$(python encode_jwt.py "$GITHUB_APP_PEM_FILE" "$GITHUB_APP_INSTALLATION_ID" "$GITHUB_BASE_URL") >> $GITHUB_ENV
- name: Terraform Init
id: init
Expand Down
2 changes: 1 addition & 1 deletion encode_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}

# Make the request to the GitHub Enterprise API to get the installation access token
url = f"{args.enterprise_url}/api/v3/app/installations/{args.installation_id}/access_tokens"
url = f"{args.enterprise_url}api/v3/app/installations/{args.installation_id}/access_tokens"
response = requests.post(url, headers=headers)

# Check if the request was successful
Expand Down

0 comments on commit 41b3579

Please sign in to comment.