Skip to content

Commit 20d3e6f

Browse files
authored
Merge pull request #164 from ToshY/ci/codql-permissions
[ci] using permissions read for workflow actions
2 parents 8c4c5ea + fb9c1ad commit 20d3e6f

File tree

6 files changed

+25
-0
lines changed

6 files changed

+25
-0
lines changed

.github/workflows/generator.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: Generator
2+
23
on:
34
workflow_dispatch:
45
schedule:
56
- cron: '0 0 * * 0'
67

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
712
env:
813
API_SPEC_MANIFEST: https://toshy.github.io/bunnynet-openapi-specification/manifest.json
914

.github/workflows/phpcs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: PHPCS
2+
23
on:
34
push:
45
branches:
@@ -7,6 +8,9 @@ on:
78
branches:
89
- master
910

11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
phpcs:
1216
name: PHP CS Fixer

.github/workflows/phpmd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: PHPMD
2+
23
on:
34
push:
45
branches:
@@ -7,6 +8,9 @@ on:
78
branches:
89
- master
910

11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
phpmd:
1216
name: PHPMD

.github/workflows/phpstan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: PHPStan
2+
23
on:
34
push:
45
branches:
@@ -7,6 +8,9 @@ on:
78
branches:
89
- master
910

11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
phpcs:
1216
name: PHPStan

.github/workflows/phpunit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: PHPUnit
2+
23
on:
34
push:
45
branches:
@@ -7,6 +8,9 @@ on:
78
branches:
89
- master
910

11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
phpcs:
1216
name: PHPUnit

.github/workflows/security.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Security Check
2+
23
on:
34
push:
45
branches:
@@ -9,6 +10,9 @@ on:
910
schedule:
1011
- cron: '0 3 * * 0'
1112

13+
permissions:
14+
contents: read
15+
1216
jobs:
1317
build:
1418
name: Security check

0 commit comments

Comments
 (0)