diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml index 5a0e83b..6a4e169 100644 --- a/.github/workflows/lint-pr.yaml +++ b/.github/workflows/lint-pr.yaml @@ -19,13 +19,21 @@ jobs: name: Validate PR title runs-on: ${{ fromJSON(vars.RUNS_ON) }} steps: + - name: Generate GitHub App Token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.GIT_APP_ID }} + private-key: ${{ secrets.GIT_APP_PRIVATE_KEY }} + owner: SallaApp + # skip on new commits and on body-only edits - if: >- github.event.action != 'synchronize' && (github.event.action != 'edited' || github.event.changes.title != null) uses: SallaApp/.CI/lint-pr@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ steps.app-token.outputs.token }} branch: name: Validate branch name