diff --git a/.github/workflows/definitions-update.yml b/.github/workflows/definitions-update.yml index bee35bb2c..1b1122f1d 100644 --- a/.github/workflows/definitions-update.yml +++ b/.github/workflows/definitions-update.yml @@ -12,16 +12,25 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.number || github.ref }} cancel-in-progress: true -permissions: - contents: write - jobs: update-rudub: name: Update rudub if: github.repository == 'Jackett/Jackett' runs-on: ubuntu-latest + permissions: + contents: write steps: - - uses: actions/checkout@v5 + - name: Generate Token + uses: actions/create-github-app-token@v2 + id: app-token + with: + app-id: "${{ secrets.BOT_APP_ID }}" + private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" + + - name: Checkout + uses: actions/checkout@v5 + with: + token: ${{ steps.app-token.outputs.token }} - name: Setup Environment Variables run: |