Skip to content

Commit e2d9bf1

Browse files
authored
ci: explicit permissions in actions (#666)
* ci: explicit permissions in actions * fix: additional permission to action
1 parent d880b92 commit e2d9bf1

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- master
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test:
1215
name: Test / OS ${{ matrix.platform }} / Node ${{ matrix.node }}

.github/workflows/cli.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
710
env:
811
service_to_update: 'storage-api'
912
cli_repo_owner: supabase

.github/workflows/docs.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- master
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write
11+
pages: write
12+
913
jobs:
1014
test:
1115
name: Test / OS ${{ matrix.platform }} / Node ${{ matrix.node }}

.github/workflows/mirror.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
required: true
99
type: string
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
mirror:
1316
runs-on: ubuntu-latest

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- master
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
release:
1114
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)