Skip to content

Commit

Permalink
ci: added authorize step for executing steps job to protect codecov t…
Browse files Browse the repository at this point in the history
…oken
  • Loading branch information
desusai7 committed Jun 20, 2024
1 parent 5406743 commit e50ad16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
authorize:
name: Authorize
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true

test:
needs: authorize # Require approval before running on forked pull requests
name: Test on ${{ matrix.platform.os }} using Xcode ${{ matrix.xcode }}
runs-on: macos-13

Expand Down

0 comments on commit e50ad16

Please sign in to comment.