@@ -13,8 +13,17 @@ concurrency:
1313 cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
1414
1515jobs :
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 }}
26+ environment : ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}
1827 runs-on : macos-13
1928
2029 env :
3140
3241 steps :
3342 - name : Checkout
34- uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
43+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
3544
3645 - name : Set up environment
3746 uses : ./.github/actions/setup
5261 - name : Upload coverage report
5362 if : ${{ matrix.platform.os == 'iOS' }}
5463 uses : codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457
64+ with :
65+ token : ${{ secrets.CODECOV_TOKEN }}
5566
5667 test-package :
5768 name : Test Swift package using Xcode ${{ matrix.xcode }}
6475
6576 steps :
6677 - name : Checkout
67- uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
78+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
6879
6980 - name : Set up environment
7081 uses : ./.github/actions/setup
8596
8697 steps :
8798 - name : Checkout
88- uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
99+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
89100
90101 - name : Set up environment
91102 uses : ./.github/actions/setup
@@ -101,7 +112,7 @@ jobs:
101112
102113 steps :
103114 - name : Checkout
104- uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
115+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
105116
106117 - name : Run SwiftLint
107118 run : swiftlint lint --reporter github-actions-logging
0 commit comments