Skip to content

Commit 21984a9

Browse files
Merge pull request #5 from devwithkrishna/feature/add-pagination
bugfix DEVOPS-283
2 parents 400738f + 1065d2d commit 21984a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/github-create-and-add-labels-all-repos-using-python.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
steps:
1717
- name: git checkout
1818
uses: actions/checkout@v4
19+
- name: Token generator
20+
uses: githubofkrishnadhas/github-access-using-githubapp@v2
21+
id: token-generation
22+
with:
23+
github_app_id: ${{ secrets.TOKEN_GENERATOR_APPID }}
24+
github_app_private_key: ${{ secrets.TOKEN_GENERATOR_PRIVATE_KEY }}
1925
- name: set up python 3.11
2026
uses: actions/setup-python@v4
2127
with:
@@ -26,7 +32,7 @@ jobs:
2632
poetry install
2733
- name: execute python program
2834
env:
29-
GH_TOKEN: ${{ secrets.DEVWITHKRISHNA_PERSONAL_ACCESS_TOKEN }}
35+
GH_TOKEN: ${{ steps.token-generation.outputs.token }}
3036
ORGANIZATION: 'devwithkrishna'
3137
run: |
3238
poetry run python3 create_new_labels.py

0 commit comments

Comments
 (0)