Skip to content

Commit 8b5cf63

Browse files
authored
Merge pull request #342 from 10up/fix/workflow-perms
Fix/workflow perms
2 parents c7e0b53 + 9c18867 commit 8b5cf63

8 files changed

Lines changed: 28 additions & 0 deletions

File tree

.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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: E2E Test
22

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

.github/workflows/php-compatibility.yml

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

3+
permissions:
4+
contents: read
5+
36
env:
47
COMPOSER_VERSION: "2"
58
COMPOSER_CACHE: "${{ github.workspace }}/.composer-cache"

.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/phpunit.yml

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

3+
permissions:
4+
contents: read
5+
36
env:
47
COMPOSER_VERSION: "2"
58
COMPOSER_CACHE: "${{ github.workspace }}/.composer-cache"

.github/workflows/push-asset-readme-update.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

.github/workflows/push-deploy.yml

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

3+
permissions:
4+
contents: read
5+
packages: read
6+
actions: write
7+
38
on:
49
release:
510
types: [published]

.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+
issues: write
6+
37
on:
48
issues:
59
types:

0 commit comments

Comments
 (0)