File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 15
15
shell : bash
16
16
17
17
- name : Set up Ruby
18
- uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939
18
+ uses : ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # pinned to version v1.178.0
19
19
with :
20
20
bundler-cache : true
21
21
cache-version : 1
Original file line number Diff line number Diff line change @@ -13,8 +13,17 @@ concurrency:
13
13
cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
14
14
15
15
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
+
16
23
test :
24
+ needs : authorize # Require approval before running on forked pull requests
17
25
name : Test on ${{ matrix.platform.os }} using Xcode ${{ matrix.xcode }}
26
+ environment : ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}
18
27
runs-on : macos-13
19
28
20
29
env :
52
61
- name : Upload coverage report
53
62
if : ${{ matrix.platform.os == 'iOS' }}
54
63
uses : codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457
64
+ with :
65
+ token : ${{ secrets.CODECOV_TOKEN }}
55
66
56
67
test-package :
57
68
name : Test Swift package using Xcode ${{ matrix.xcode }}
You can’t perform that action at this time.
0 commit comments