Skip to content

Commit e64151f

Browse files
authored
Merge pull request #76 from supabase/chore-review-actions
ci: explicit permissions in actions
2 parents 3e2bbf6 + 4849477 commit e64151f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/pgxn-release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
# Release on semantic version tag.
55
tags: ['v[0-9]+.[0-9]+.[0-9]+']
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
release:
812
name: 🚀 Release on PGXN

.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
tags:
88
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
99

10+
permissions:
11+
contents: write # Required to upload release assets
12+
1013
jobs:
1114
release:
1215
name: Create Release
@@ -110,7 +113,7 @@ jobs:
110113
cd ../../../../../..
111114
112115
# Create install control file
113-
extension_version=${{ github.ref_name }}
116+
extension_version="${{ github.ref_name }}"
114117
# strip the leading v
115118
deb_version=${extension_version:1}
116119

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
pull_request:
44
push: { branches: [master] }
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
test:
811
name: Run tests

0 commit comments

Comments
 (0)