Skip to content

Commit

Permalink
Execute against pull_request_target (#65)
Browse files Browse the repository at this point in the history
This ensures we're not running our CI against the head of the repository branch
Also enable workflow_dispatch
  • Loading branch information
Dragos Dumitrache authored and ijames-gc committed Feb 13, 2024
1 parent 40e2c85 commit b6d3603
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- 'main'
- 'release-**'
pull_request:
pull_request_target:
types:
- opened
- reopened
Expand All @@ -14,6 +14,8 @@ on:
branches:
- 'main'
- 'release-**'
workflow_dispatch:


concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -23,7 +25,7 @@ jobs:
changes:
outputs:
should-run-tests: ${{ steps.changes.outputs.go == 'true' }}
if: github.event.pull_request.draft == false
if: github.event.pull_request_target.draft == false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit b6d3603

Please sign in to comment.