Skip to content

Commit d1ccb27

Browse files
committed
ci(workflows): add gh pat for @dependabot
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 05d88e5 commit d1ccb27

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/dependabot-auto.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121
---
2222
name: dependabot-auto
2323
on: pull_request
24-
permissions:
25-
contents: write
26-
pull-requests: write
2724
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GITHUB_TOKEN: ${{ secrets.PAT_DEPENDABOT }}
2926
YARN_ENABLE_IMMUTABLE_INSTALLS: false
3027
jobs:
3128
dependabot-auto:
@@ -46,6 +43,7 @@ jobs:
4643
with:
4744
persist-credentials: ${{ steps.metadata.outputs.package-ecosystem == 'npm_and_yarn' }}
4845
ref: ${{ github.head_ref }}
46+
token: ${{ env.GITHUB_TOKEN }}
4947
- id: lockfile-fix
5048
name: Fix yarn.lock
5149
if: steps.metadata.outputs.package-ecosystem == 'npm_and_yarn'
@@ -63,8 +61,6 @@ jobs:
6361
git add yarn.lock
6462
git status
6563
git diff-index --quiet HEAD || git commit -m 'chore(yarn): fix lockfile' && git push -f
66-
env:
67-
GITHUB_TOKEN: ${{ secrets.PAT_ADMIN }}
6864
- id: approve-pr
6965
name: Approve pull request
7066
run: gh pr review ${{ github.event.number }} --approve

0 commit comments

Comments
 (0)