Skip to content

Commit 275b75f

Browse files
committed
Tighten some workflow permissions.
1 parent b9c7891 commit 275b75f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
release:
66
types: [published]
77

8+
permissions: {}
9+
810
jobs:
911
vsce:
1012
name: VS Code Marketplace
@@ -13,6 +15,8 @@ jobs:
1315
environment:
1416
name: VS Code Marketplace
1517
url: https://marketplace.visualstudio.com/items?itemName=johnbillion.vscode-wordpress-hooks
18+
permissions:
19+
contents: read
1620
env:
1721
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
1822
steps:

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ on:
66
push:
77
pull_request:
88

9+
permissions: {}
10+
911
jobs:
1012
test:
1113
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1214
name: Linter
1315
runs-on: ubuntu-latest
1416
timeout-minutes: 10
17+
permissions:
18+
contents: read
1519
steps:
1620
- name: Checkout repository
1721
uses: actions/checkout@v4

0 commit comments

Comments
 (0)