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 676f105
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 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
9 changes: 5 additions & 4 deletions .github/workflows/flow.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Flow build and test

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

jobs:
flow_test:
strategy:
matrix:
runner: [ubicloud-standard-4]
runner: [ubicloud-standard-8]
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
services:
Expand All @@ -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 676f105

Please sign in to comment.