Skip to content

Commit 5c16146

Browse files
authored
ci: upgraded ruby/setup-ruby action from version v1.152.0 to v1.178.0 (#214)
2 parents 5dc5b3f + f619a12 commit 5c16146

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/actions/setup/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
shell: bash
1616

1717
- name: Set up Ruby
18-
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939
18+
uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # pinned to version v1.178.0
1919
with:
2020
bundler-cache: true
2121
cache-version: 1

.github/workflows/main.yml

+11
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@ 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 }}
26+
environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }}
1827
runs-on: macos-13
1928

2029
env:
@@ -52,6 +61,8 @@ jobs:
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 }}

0 commit comments

Comments
 (0)