Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

Set permissions for GitHub actions

naveensrinivasan5b352ec1d21e
diff --git a/.github/workflows/binaries_dev.yml b/.github/workflows/binaries_dev.yml
index 69602bfb71..29b1cf6abc 100644
--- a/.github/workflows/binaries_dev.yml
+++ b/.github/workflows/binaries_dev.yml
@@ -4,9 +4,14 @@ on:
push:
branches: [ master ]
+permissions:
+ contents: read
+
jobs:
cleanup:
+ permissions:
+ contents: write # for mknejp/delete-release-assets to delete release assets
runs-on: ubuntu-latest
steps:
@@ -21,6 +26,8 @@ jobs:
weed-*
build_dev_linux_windows:
+ permissions:
+ contents: write # for wangyoucao577/go-release-action to upload release assets
needs: cleanup
runs-on: ubuntu-latest
strategy:
@@ -68,6 +75,8 @@ jobs:
asset_name: "weed-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
build_dev_darwin:
+ permissions:
+ contents: write # for wangyoucao577/go-release-action to upload release assets
needs: build_dev_linux_windows
runs-on: ubuntu-latest
strategy:
diff --git a/.github/workflows/binaries_release0.yml b/.github/workflows/binaries_release0.yml
index 300757a706..3a6cb734d3 100644
--- a/.github/workflows/binaries_release0.yml
+++ b/.github/workflows/binaries_release0.yml
@@ -11,9 +11,14 @@ on:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+permissions:
+ contents: read
+
jobs:
build-release-binaries_windows:
+ permissions:
+ contents: write # for wangyoucao577/go-release-action to upload release assets
runs-on: ubuntu-latest
strategy:
matrix:
diff --git a/.github/workflows/binaries_release1.yml b/.github/workflows/binaries_release1.yml
index d7594ec194..d0a51ce8f4 100644
--- a/.github/workflows/binaries_release1.yml
+++ b/.github/workflows/binaries_release1.yml
@@ -11,9 +11,14 @@ on:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+permissions:
+ contents: read
+
jobs:
build-release-binaries_linux:
+ permissions:
+ contents: write # for wangyoucao577/go-release-action to upload release assets
runs-on: ubuntu-latest
strategy:
matrix:
diff --git a/.github/workflows/binaries_release2.yml b/.github/workflows/binaries_release2.yml
index c605004eb7..09e8fc7ae7 100644
--- a/.github/workflows/binaries_release2.yml
+++ b/.github/workflows/binaries_release2.yml
@@ -11,9 +11,14 @@ on:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+permissions:
+ contents: read
+
jobs:
build-release-binaries_darwin:
+ permissions:
+ contents: write # for wangyoucao577/go-release-action to upload release assets
runs-on: ubuntu-latest
strategy:
matrix:
diff --git a/.github/workflows/binaries_release3.yml b/.github/workflows/binaries_release3.yml
index f87f289d1b..c96a91ceeb 100644
--- a/.github/workflows/binaries_release3.yml
+++ b/.github/workflows/binaries_release3.yml
@@ -11,9 +11,14 @@ on:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+permissions:
+ contents: read
+
jobs:
build-release-binaries_freebsd:
+ permissions:
+ contents: write # for wangyoucao577/go-release-action to upload release assets
runs-on: ubuntu-latest
strategy:
matrix: