Skip to content

Commit df9d9bd

Browse files
authored
fix: Dependabot permissions to write PR comments (#63)
1 parent 29885b6 commit df9d9bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/benchmark.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ on:
66
- master
77
types: [opened, synchronize, reopened]
88

9+
permissions:
10+
pull-requests: write
11+
issues: write
12+
913
jobs:
1014
benchmark:
15+
1116
runs-on: ubuntu-latest
1217

1318
steps:
@@ -88,7 +93,8 @@ jobs:
8893

8994
# Step 10: Post results as PR comment
9095
- name: Comment PR with benchmark results
91-
uses: actions/github-script@v6
96+
if: ${{ github.actor != 'dependabot[bot]' }}
97+
uses: actions/github-script@v8
9298
with:
9399
github-token: ${{ secrets.GITHUB_TOKEN }}
94100
script: |

0 commit comments

Comments
 (0)