Skip to content

Commit 9624a88

Browse files
authored
Add permissions to GitHub actions (#791)
1 parent eda1596 commit 9624a88

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/ci.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- master
88
- release/**
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
phpunit:
1215
runs-on: ubuntu-latest

.github/workflows/cs.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- master
88
- release/**
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
php-cs-fixer:
1215
name: PHP-CS-Fixer

.github/workflows/publish-release.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
description: Force a release even when there are release-blockers (optional)
1111
required: false
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
release:
1518
runs-on: ubuntu-latest

.github/workflows/static-analysis.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- master
88
- release/**
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
phpstan:
1215
name: PHPStan

0 commit comments

Comments
 (0)