Skip to content

Commit c5a561c

Browse files
committed
Add permissions block
1 parent 83bfd94 commit c5a561c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/reusable-functional.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ on:
2929
required: false
3030
default: 'ubuntu-22.04'
3131

32+
permissions:
33+
contents: read
34+
3235
jobs:
3336
functional:
3437
name: PHP ${{ inputs.php }} | WP ${{ inputs.wp }} | ${{ inputs.dbtype == 'sqlite' && 'SQLite' || inputs.dbtype == 'mariadb' && 'MariaDB' || 'MySQL' }}${{ inputs.object_cache == 'sqlite' && ' (Obj Cache)' || '' }}${{ inputs.coverage && ' (with coverage)' || '' }}${{ startsWith( inputs.os, 'windows' ) && ' (Windows)' || '' }}${{ startsWith( inputs.os, 'macos' ) && ' (macOS)' || '' }}

.github/workflows/reusable-unit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
required: false
1515
default: 'ubuntu-22.04'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
unit:
1922
name: PHP ${{ inputs.php }}${{ inputs.coverage && ' (with coverage)' || '' }}${{ startsWith( inputs.os, 'windows' ) && ' (Windows)' || '' }}${{ startsWith( inputs.os, 'macos' ) && ' (macOS)' || '' }}

0 commit comments

Comments
 (0)