From 1065d2dd08c8fc361aa75d05bf83a04f88caa4bb Mon Sep 17 00:00:00 2001 From: githubofkrishnadhas Date: Thu, 26 Sep 2024 02:04:20 +0530 Subject: [PATCH] bugfix DEVOPS-283 --- ...thub-create-and-add-labels-all-repos-using-python.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-create-and-add-labels-all-repos-using-python.yaml b/.github/workflows/github-create-and-add-labels-all-repos-using-python.yaml index 646e92c..5f6985c 100644 --- a/.github/workflows/github-create-and-add-labels-all-repos-using-python.yaml +++ b/.github/workflows/github-create-and-add-labels-all-repos-using-python.yaml @@ -16,6 +16,12 @@ jobs: steps: - name: git checkout uses: actions/checkout@v4 + - name: Token generator + uses: githubofkrishnadhas/github-access-using-githubapp@v2 + id: token-generation + with: + github_app_id: ${{ secrets.TOKEN_GENERATOR_APPID }} + github_app_private_key: ${{ secrets.TOKEN_GENERATOR_PRIVATE_KEY }} - name: set up python 3.11 uses: actions/setup-python@v4 with: @@ -26,7 +32,7 @@ jobs: poetry install - name: execute python program env: - GH_TOKEN: ${{ secrets.DEVWITHKRISHNA_PERSONAL_ACCESS_TOKEN }} + GH_TOKEN: ${{ steps.token-generation.outputs.token }} ORGANIZATION: 'devwithkrishna' run: | poetry run python3 create_new_labels.py