Skip to content

Commit e50ad16

Browse files
committed
ci: added authorize step for executing steps job to protect codecov token
1 parent 5406743 commit e50ad16

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ concurrency:
1313
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
1414

1515
jobs:
16+
authorize:
17+
name: Authorize
18+
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}
19+
runs-on: ubuntu-latest
20+
steps:
21+
- run: true
22+
1623
test:
24+
needs: authorize # Require approval before running on forked pull requests
1725
name: Test on ${{ matrix.platform.os }} using Xcode ${{ matrix.xcode }}
1826
runs-on: macos-13
1927

0 commit comments

Comments
 (0)