Skip to content

Commit b8044e0

Browse files
authored
Merge pull request #177 from 10up/fix/workflow-perms
Fix/workflow perms
2 parents 43d9ef0 + 76375a5 commit b8044e0

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

.github/workflows/build-release-zip.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build release zip
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
workflow_call:

.github/workflows/cypress.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Cypress
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:

.github/workflows/deploy-to-dotorg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Deploy to WordPress.org
22

3+
permissions:
4+
contents: write
5+
36
on:
47
release:
58
types: [published]

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches:
1010
- develop
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
eslint:
1417
name: eslint

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
branches:
1212
- develop
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
phpunit:
1619
runs-on: ubuntu-latest

.github/workflows/update-asset-readme-on-dotorg.yml

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

8+
permissions:
9+
contents: read
10+
811
jobs:
912
trunk:
1013
name: Push to trunk

0 commit comments

Comments
 (0)