File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,11 +25,18 @@ jobs:
2525 run : |
2626 env LEAN_ABORT_ON_PANIC=1 lake exe runLinter --trace --update Mathlib
2727
28+ - name : Generate app token
29+ id : app-token
30+ uses : actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
31+ with :
32+ app-id : ${{ secrets.MATHLIB_NOLINTS_APP_ID }}
33+ private-key : ${{ secrets.MATHLIB_NOLINTS_PRIVATE_KEY }}
34+
35+ # The create-github-app-token README states that this token is masked and will not be logged accidentally.
2836 - name : Create Pull Request
2937 uses : peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
3038 with :
31- token : " ${{ secrets.UPDATE_NOLINTS_TOKEN }}"
32- author : " leanprover-community-bot <leanprover.community@gmail.com>"
39+ token : ${{ steps.app-token.outputs.token }}
3340 commit-message : " chore(scripts): update nolints.json"
3441 branch : " nolints"
3542 base : master
Original file line number Diff line number Diff line change @@ -204,13 +204,21 @@ jobs:
204204 deprecation workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
205205 from creating a new PR.
206206
207+ - name : Generate app token
208+ id : app-token
209+ if : ${{ steps.process_dates.outputs.from_date && toJson(inputs.dry_run) != 'true' && steps.find-pr.outputs.pr_found != 'true' }}
210+ uses : actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
211+ with :
212+ app-id : ${{ secrets.MATHLIB_NOLINTS_APP_ID }}
213+ private-key : ${{ secrets.MATHLIB_NOLINTS_PRIVATE_KEY }}
214+
215+ # The create-github-app-token README states that this token is masked and will not be logged accidentally.
207216 - name : Create Pull Request
208217 id : pr
209218 if : ${{ steps.process_dates.outputs.from_date && toJson(inputs.dry_run) != 'true' && steps.find-pr.outputs.pr_found != 'true' }}
210219 uses : peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
211220 with :
212- token : " ${{ secrets.UPDATE_NOLINTS_TOKEN }}"
213- author : " leanprover-community-mathlib4-bot <leanprover-community-mathlib4-bot@users.noreply.github.com>"
221+ token : ${{ steps.app-token.outputs.token }}
214222 commit-message : " chore: remove declarations deprecated between ${{ steps.process_dates.outputs.from_date }} and ${{ steps.process_dates.outputs.to_date }}"
215223 branch : ${{ env.BRANCH_NAME }}
216224 base : master
You can’t perform that action at this time.
0 commit comments