Skip to content

Commit 57302dc

Browse files
fix: added base permissions to workflows
1 parent 2ca763d commit 57302dc

File tree

8 files changed

+35
-4
lines changed

8 files changed

+35
-4
lines changed

.github/workflows/alpha-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Alpha Release
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
alpha-release:
811
runs-on: ubuntu-latest

.github/workflows/changesets.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
name: Release
1+
name: Changesets
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
27
on:
38
push:
49
branches: [main]
@@ -21,7 +26,7 @@ jobs:
2126
- name: Checkout Repo
2227
uses: actions/checkout@v4
2328

24-
- name:
29+
- name: Setup Environment
2530
uses: ./.github/actions/setup
2631

2732
- name: Create Release Pull Request or Publish to NPM

.github/workflows/e2e.yml

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

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

.github/workflows/expo-preview.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
name: expo-preview
1+
name: Expo Preview
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
workflow_call:
48
workflow_dispatch:

.github/workflows/expo-update.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
name: expo-update
1+
name: Expo Update
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
workflow_call:
48
workflow_dispatch:

.github/workflows/pull-request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Pull Request
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
pull_request:
48
types: [opened, reopened, synchronize, ready_for_review]

.github/workflows/snapshot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Snapshot
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
workflow_call:
48
workflow_dispatch:

.github/workflows/verify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Verify
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
workflow_call:
48
workflow_dispatch:

0 commit comments

Comments
 (0)