Skip to content

Commit

Permalink
Add permissions to GitHub actions (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Nov 6, 2023
1 parent eda1596 commit 9624a88
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- master
- release/**

permissions:
contents: read

jobs:
phpunit:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- master
- release/**

permissions:
contents: read

jobs:
php-cs-fixer:
name: PHP-CS-Fixer
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
description: Force a release even when there are release-blockers (optional)
required: false

permissions:
contents: read

jobs:
release:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- master
- release/**

permissions:
contents: read

jobs:
phpstan:
name: PHPStan
Expand Down

0 comments on commit 9624a88

Please sign in to comment.