diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b32c2bab..6cdb83ff1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,10 @@ on: defaults: run: shell: bash +permissions: + contents: write + packages: read + checks: write jobs: diff --git a/make/proto.mk b/make/proto.mk index 60a835bdb..bfb89aa76 100644 --- a/make/proto.mk +++ b/make/proto.mk @@ -17,8 +17,6 @@ proto-all: proto-gen proto-swagger-gen proto-gen: @echo "Generating Protobuf files" - # to resolve permission issues - find . -type d -exec chmod 777 {} + @$(protoImage) sh ./scripts/protocgen.sh; go mod tidy cd api diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 7e25e0528..00b24d5c1 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -16,10 +16,7 @@ for proto_dir in $proto_dirs; do done done -cd .. - -# to resolve permission issues -find . -type d -exec chmod 777 {} + +cd .. # move proto files to the right places