aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/binaries_dev.yml
diff options
context:
space:
mode:
authornaveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>2022-04-05 01:37:14 +0000
committernaveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>2022-04-05 01:37:14 +0000
commit5b352ec1d21e4600064d88c14e9ea813784d5f9c (patch)
treee305b89b8686c388c22876d9f92daef12baa361b /.github/workflows/binaries_dev.yml
parent6e4c94e2e1f487860838cdece9ed0b36f049d37b (diff)
downloadseaweedfs-5b352ec1d21e4600064d88c14e9ea813784d5f9c.tar.xz
seaweedfs-5b352ec1d21e4600064d88c14e9ea813784d5f9c.zip
Set permissions for GitHub actions
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
Diffstat (limited to '.github/workflows/binaries_dev.yml')
-rw-r--r--.github/workflows/binaries_dev.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/binaries_dev.yml b/.github/workflows/binaries_dev.yml
index 69602bfb7..29b1cf6ab 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: