Skip to content

Commit

Permalink
Workflows: Allow dependabot permissions in PHPCS workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amiabot committed Nov 17, 2023
1 parent 9c5fc32 commit f8223bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ name: PHPCS (Default, PHP 8.2)

on: pull_request

# The GITHUB_TOKEN used by Dependabot has read-only permissions
# by default, so we provide write permissions to this workflow
# so that comments can be left on the pull request.
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#changing-github_token-permissions
permissions:
contents: read
pull-requests: write

jobs:
phpcs:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f8223bc

Please sign in to comment.