Skip to content

Commit

Permalink
fix usage of pull request target
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Oct 5, 2023
1 parent 18f7188 commit 8c09689
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/flow.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Flow build and test

on:
pull_request_target:
branches: [main]
pull_request:
branches:
- "main"
push:
branches: [main]

Expand Down Expand Up @@ -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: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/golang-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: GolangCI-Lint

on: [pull_request_target]
on:
pull_request:
branches:
- "main"

jobs:
golangci-lint:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/rust-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: clippy-action
on: [pull_request_target]

on:
pull_request:
branches:
- "main"

jobs:
clippy:
permissions:
Expand Down

0 comments on commit 8c09689

Please sign in to comment.