Skip to content

Commit 5431c13

Browse files
authored
Harden GitHub Workflows permissions (#772)
1 parent f1a468a commit 5431c13

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/publish-release.yaml

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- develop
99
- release/**
1010

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

.github/workflows/tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- develop
99
- release/**
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
tests:
1316
name: Tests

0 commit comments

Comments
 (0)