Skip to content

Commit

Permalink
Add authorize step to both PR workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Oct 20, 2022
1 parent 11d5bab commit ca843fc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ concurrency:
cancel-in-progress: true

jobs:
authorize:
environment:
${{ (github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository) &&
'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: echo ✓

build:
needs: authorize
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/cross-platform-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ concurrency:
cancel-in-progress: true

jobs:
authorize:
environment:
${{ (github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository) &&
'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: echo ✓

suite:
needs: authorize
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
Expand Down

0 comments on commit ca843fc

Please sign in to comment.