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