@@ -14,15 +14,17 @@ jobs:
1414 name : document
1515 runs-on : ubuntu-latest
1616 env :
17- GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
17+ GITHUB_PAT : ${{ secrets.GTHB_PAT }}
1818 permissions :
1919 contents : write
2020 steps :
2121 - uses : actions/checkout@v4
22+ with :
23+ persist-credentials : false
2224
2325 - uses : r-lib/actions/pr-fetch@v2
2426 with :
25- repo-token : ${{ secrets.GITHUB_TOKEN }}
27+ repo-token : ${{ secrets.GTHB_PAT }}
2628
2729 - uses : r-lib/actions/setup-r@v2
2830 with :
@@ -42,26 +44,28 @@ jobs:
4244 git config --local user.name "$GITHUB_ACTOR"
4345 git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
4446 git add man/\* NAMESPACE
45- git commit -m 'Document'
47+ git commit -m 'Document (GHA) '
4648
4749 - uses : r-lib/actions/pr-push@v2
4850 with :
49- repo-token : ${{ secrets.GITHUB_TOKEN }}
51+ repo-token : ${{ secrets.GTHB_PAT }}
5052
5153 style :
5254 if : ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR') && startsWith(github.event.comment.body, '/style') }}
5355 name : style
5456 runs-on : ubuntu-latest
5557 env :
56- GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
58+ GITHUB_PAT : ${{ secrets.GTHB_PAT }}
5759 permissions :
5860 contents : write
5961 steps :
6062 - uses : actions/checkout@v4
63+ with :
64+ persist-credentials : false
6165
6266 - uses : r-lib/actions/pr-fetch@v2
6367 with :
64- repo-token : ${{ secrets.GITHUB_TOKEN }}
68+ repo-token : ${{ secrets.GTHB_PAT }}
6569
6670 - uses : r-lib/actions/setup-r@v2
6771
9599
96100 - uses : r-lib/actions/pr-push@v2
97101 with :
98- repo-token : ${{ secrets.GITHUB_TOKEN }}
102+ repo-token : ${{ secrets.GTHB_PAT }}
0 commit comments