diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9612e8ecb..872c85930 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,10 @@ name: Build and Test on: push: branches: [main, release/*] - pull_request_target: - branches: [main] + pull_request: + branches: + - "main" + - "release/*" jobs: build: diff --git a/.github/workflows/flow.yml b/.github/workflows/flow.yml index 4b452c900..5c9a702f1 100644 --- a/.github/workflows/flow.yml +++ b/.github/workflows/flow.yml @@ -1,8 +1,9 @@ name: Flow build and test on: - pull_request_target: - branches: [main] + pull_request: + branches: + - "main" push: branches: [main] @@ -34,7 +35,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: '>=1.19.0' + go-version: ">=1.19.0" - name: install gotestsum run: | diff --git a/.github/workflows/golang-lint.yml b/.github/workflows/golang-lint.yml index adf47ca44..fd685d8c4 100644 --- a/.github/workflows/golang-lint.yml +++ b/.github/workflows/golang-lint.yml @@ -1,6 +1,9 @@ name: GolangCI-Lint -on: [pull_request_target] +on: + pull_request: + branches: + - "main" jobs: golangci-lint: diff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.yml index 1893386ed..d87b89195 100644 --- a/.github/workflows/rust-lint.yml +++ b/.github/workflows/rust-lint.yml @@ -1,5 +1,10 @@ name: clippy-action -on: [pull_request_target] + +on: + pull_request: + branches: + - "main" + jobs: clippy: permissions: