Skip to content

Commit ddb2aa6

Browse files
anomiexmatticbot
authored andcommitted
mirrors: Set permissions in mirror repo workflows (#46230)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/20146133820 Upstream-Ref: Automattic/jetpack@f741ad0
1 parent 079a072 commit ddb2aa6

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

.github/workflows/autorelease.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
- 'trunk'
1414
workflow_dispatch:
1515

16+
permissions:
17+
# read: actions/checkout
18+
# write: `gh release`
19+
contents: write
20+
1621
jobs:
1722
publish:
1823
name: Release

.github/workflows/autotagger.yml

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

11+
# We use secrets.API_TOKEN_GITHUB for everything here, so no need for permissions.
12+
permissions: {}
13+
1114
jobs:
1215
tag:
1316
name: Tag

.github/workflows/e2e-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: End to end tests
33
on:
44
push:
55

6+
# We use secrets.REPO_DISPATCH_TOKEN for everything here, so no need for permissions.
7+
permissions: {}
8+
69
jobs:
710
run-tests:
811
name: "Trigger e2e tests in Jetpack monorepo"

.github/workflows/readonly.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request_target:
77
types: opened
88

9+
permissions:
10+
# dessant/repo-lockdown
11+
issues: write
12+
pull-requests: write
13+
914
jobs:
1015
lockdown:
1116
runs-on: ubuntu-latest

.github/workflows/wp-svn-autopublish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- 'v?[0-9]+.[0-9]+.[0-9]+.[0-9]+'
1111
- 'v?[0-9]+.[0-9]+.[0-9]+.[0-9]+-*'
1212

13+
permissions:
14+
# actions/checkout
15+
contents: read
16+
1317
jobs:
1418
publish:
1519
name: Publish

0 commit comments

Comments
 (0)