Skip to content

Commit 769c024

Browse files
Add permissions to write to PRs
1 parent 553968d commit 769c024

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/python-app.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ on:
1111
branches:
1212
- main
1313

14+
# Yoinked from https://github.com/MTES-MCT/apilos/pull/854/files
15+
# Explicitely set permissions to allow Dependabot workflow runs to write in the PR
16+
# for coverage's reporting.
17+
# By default, these are read-only when the actions are ran by Dependabot
18+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#changing-github_token-permissions
19+
permissions:
20+
pull-requests: write
21+
1422
jobs:
1523
Pytest:
1624
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)