Skip to content

Commit 982bf5c

Browse files
authored
Merge pull request #245 from 10up/fix/workflow-perms
Fix/workflow perms
2 parents 2bbfa6d + 8db24c3 commit 982bf5c

File tree

8 files changed

+26
-0
lines changed

8 files changed

+26
-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
@@ -8,6 +8,9 @@ on:
88
pull_request:
99
branches:
1010
- develop
11+
permissions:
12+
contents: read
13+
actions: read
1114
jobs:
1215
build:
1316
uses: 10up/simple-page-ordering/.github/workflows/build-release-zip.yml@develop

.github/workflows/jslint.yml

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

12+
permissions:
13+
checks: write
14+
contents: read
15+
pull-requests: write
16+
1217
jobs:
1318
jslint:
1419
runs-on: ubuntu-latest

.github/workflows/php-compatibility.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: PHP Compatibility
2+
permissions:
3+
contents: read
24

35
on:
46
push:

.github/workflows/phpcs.yml

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

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

.github/workflows/push-asset-readme-update.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Plugin asset/readme update
22

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

.github/workflows/push-deploy.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: read
5+
36
on:
47
push:
58
tags:

.github/workflows/repo-automator.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: 'Repo Automator'
22

3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
37
on:
48
issues:
59
types:

0 commit comments

Comments
 (0)