Skip to content

Commit ef9fb54

Browse files
committed
chore: set explicit workflow permissions defaults
1 parent 006fc68 commit ef9fb54

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

.github/workflows/reusable-coveralls.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
type: string
99
required: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
coveralls:
1316
runs-on: ubuntu-24.04

.github/workflows/reusable-phpunit-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ on:
5656
type: string
5757
required: false
5858

59+
permissions:
60+
contents: read
61+
5962
env:
6063
NLS_LANG: 'AMERICAN_AMERICA.UTF8'
6164
NLS_DATE_FORMAT: 'YYYY-MM-DD HH24:MI:SS'

.github/workflows/reusable-serviceless-phpunit-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ on:
5050
type: string
5151
required: false
5252

53+
permissions:
54+
contents: read
55+
5356
jobs:
5457
tests:
5558
name: ${{ inputs.job-name }}

.github/workflows/test-phpcpd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
- 'system/**.php'
2323
- '.github/workflows/test-phpcpd.yml'
2424

25+
permissions:
26+
contents: read
27+
2528
jobs:
2629
phpcpd:
2730
uses: codeigniter4/.github/.github/workflows/phpcpd.yml@main

.github/workflows/test-psalm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
- 'psalm*'
2121
- '.github/workflows/test-psalm.yml'
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
build:
2528
name: Psalm Analysis

admin/starter/.github/workflows/phpunit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- develop
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
main:
1013
name: Build and test

admin/userguide/.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
branches:
88
- master
99

10+
permissions: {}
11+
1012
jobs:
1113
build:
1214
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)