Skip to content

Commit d723d47

Browse files
Merge branch 'main' of github.com:githubofkrishnadhas/github-access-using-githubapp
2 parents 4cb72b6 + 13265d1 commit d723d47

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name = "pypi"
77
requests = "==2.32.2"
88
jwt = "==1.3.1"
99
cryptography = "==42.0.5"
10+
python-dotenv = "==1.0.1"
1011

1112
[dev-packages]
1213
python-dotenv = "==1.0.1"

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ inputs:
77
required: true
88
github_app_private_key:
99
description: "Github App private key"
10+
github_account_type:
11+
description: "Github account user or organization"
1012
runs:
1113
using: 'docker'
1214
image: 'Dockerfile'
1315
args:
1416
- ${{ inputs.github_app_id }}
1517
- ${{ inputs.github_app_private_key }}
16-
- ${{ inputs.github_account_type }}
18+
- ${{ inputs.github_account_type }}

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
cd /app && pipenv install --skip-lock
55

66
# run python program to generate token
7-
pipenv run python3 /app/generate_jwt.py --github_app_id "$1" --github_app_private_key "$2"
7+
pipenv run python3 /app/generate_jwt.py --github_app_id "$1" --github_app_private_key "$2" --github_account_type "$3"
88

99

0 commit comments

Comments
 (0)