Skip to content

Commit c6ecf95

Browse files
authored
Merge pull request #761 from Iterable/MOB-8328-isrr-529-address-github-actions-with-commit-sha-in-swift-sdk
[MOB-8328] - use secure commit SHA in actions
2 parents cb64b4d + c8efeb1 commit c6ecf95

File tree

3 files changed

+31
-32
lines changed

3 files changed

+31
-32
lines changed

.github/workflows/build-and-test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ jobs:
77
runs-on: macos-12
88

99
steps:
10-
- uses: actions/checkout@v2
11-
12-
- uses: maxim-lobanov/[email protected]
13-
with:
14-
xcode-version: latest
10+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1511

16-
- name: Build and test
17-
run: |
18-
xcodebuild test -project swift-sdk.xcodeproj -scheme swift-sdk -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13 Pro Max' -enableCodeCoverage YES CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
19-
20-
- name: CocoaPods lint
21-
run: pod lib lint
12+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
13+
with:
14+
xcode-version: latest
2215

23-
- name: Upload coverage report to codecov.io
24-
run: bash <(curl -s https://codecov.io/bash) -X gcov -J 'IterableSDK' -J 'IterableAppExtensions'
16+
- name: Build and test
17+
run: |
18+
xcodebuild test -project swift-sdk.xcodeproj -scheme swift-sdk -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13 Pro Max' -enableCodeCoverage YES CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
19+
20+
- name: CocoaPods lint
21+
run: pod lib lint
22+
23+
- name: Upload coverage report to codecov.io
24+
run: bash <(curl -s https://codecov.io/bash) -X gcov -J 'IterableSDK' -J 'IterableAppExtensions'

.github/workflows/e2e.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ on: pull_request
55
jobs:
66
run-e2e-job:
77
runs-on: macos-latest
8-
8+
99
steps:
10-
- uses: actions/checkout@v2
11-
12-
- uses: maxim-lobanov/setup-xcode@v1.3.0
13-
with:
14-
xcode-version: 13.0
10+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
11+
12+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
13+
with:
14+
xcode-version: 13.0
1515

16-
- name: Build and test
17-
env:
18-
api_key: ${{secrets.E2E_API_KEY}}
19-
server_api_key: ${{secrets.E2E_SERVER_API_KEY}}
20-
push_campaign_id: ${{secrets.E2E_PUSH_CAMPAIGN_ID}}
21-
push_template_id: ${{secrets.E2E_PUSH_TEMPLATE_ID}}
22-
in_app_campaign_id: ${{secrets.E2E_IN_APP_CAMPAIGN_ID}}
23-
in_app_template_id: ${{secrets.E2E_IN_APP_TEMPLATE_ID}}
24-
run: |
25-
./tests/endpoint-tests/scripts/run_test.sh
26-
16+
- name: Build and test
17+
env:
18+
api_key: ${{secrets.E2E_API_KEY}}
19+
server_api_key: ${{secrets.E2E_SERVER_API_KEY}}
20+
push_campaign_id: ${{secrets.E2E_PUSH_CAMPAIGN_ID}}
21+
push_template_id: ${{secrets.E2E_PUSH_TEMPLATE_ID}}
22+
in_app_campaign_id: ${{secrets.E2E_IN_APP_CAMPAIGN_ID}}
23+
in_app_template_id: ${{secrets.E2E_IN_APP_TEMPLATE_ID}}
24+
run: |
25+
./tests/endpoint-tests/scripts/run_test.sh

.github/workflows/ios-sdk-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
runs-on: macos-latest
3535

3636
steps:
37-
- uses: actions/checkout@v4
38-
- uses: ruby/setup-ruby@v1
37+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
38+
- uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b # v1.174.0
3939
with:
4040
ruby-version: "3.2"
4141
bundler-cache: true

0 commit comments

Comments
 (0)