Skip to content

Commit c7f6e16

Browse files
authored
Merge branch 'main' into chore-dd-octo-sts-part2
2 parents 7484e99 + 0eb5110 commit c7f6e16

17 files changed

Lines changed: 528 additions & 73 deletions
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Policy for: .github/workflows/createRelease.yml in DataDog/dd-sdk-swift-testing
2+
issuer: https://token.actions.githubusercontent.com
3+
subject: repo:DataDog/dd-sdk-swift-testing:ref:refs/heads/main
4+
5+
claim_pattern:
6+
event_name: workflow_dispatch
7+
job_workflow_ref: DataDog/dd-sdk-swift-testing/\.github/workflows/createRelease\.yml@refs/heads/main
8+
ref: refs/heads/main
9+
repository: DataDog/dd-sdk-swift-testing
10+
11+
permissions:
12+
contents: write

.github/workflows/codeQL.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2121

2222
# Initializes the CodeQL tools for scanning.
2323
- name: Initialize CodeQL
24-
uses: github/codeql-action/init@v3
24+
uses: github/codeql-action/init@603b797f8b14b413fe025cd935a91c16c4782713 # v3.33.0
2525
with:
2626
languages: 'swift'
2727
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -33,13 +33,13 @@ jobs:
3333
run: make build
3434

3535
- name: Perform CodeQL Analysis
36-
uses: github/codeql-action/analyze@v3
36+
uses: github/codeql-action/analyze@603b797f8b14b413fe025cd935a91c16c4782713 # v3.33.0
3737
with:
3838
output: "results"
3939
upload: "never"
4040

4141
- name: Upload SARIF report to Artifacts
42-
uses: actions/upload-artifact@v4
42+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4343
with:
4444
name: CodeQL Analysis SARIF
4545
path: ${{ github.workspace }}/results/swift.sarif

.github/workflows/createRelease.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
runs-on: macos-14
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2121
- name: Select Xcode 16.2
2222
run: sudo xcode-select --switch /Applications/Xcode_16.2.app
2323
- name: Test
2424
run: make XC_LOG=tests IOS_SIMULATOR="iPhone 16" TVOS_SIMULATOR="Apple TV" tests
2525
- name: Attach Xcode logs
2626
if: '!cancelled()'
27-
uses: actions/upload-artifact@v4
27+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2828
with:
2929
name: xcode-tests-logs
3030
path: "*-tests.log"
@@ -38,13 +38,17 @@ jobs:
3838
id-token: write
3939
steps:
4040
- name: Checkout
41+
<<<<<<< chore-dd-octo-sts-part2
4142
uses: actions/checkout@v4
4243
- name: Get GitHub token via dd-octo-sts
4344
uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
4445
id: octo-sts
4546
with:
4647
scope: DataDog/dd-sdk-swift-testing
4748
policy: self.github.create-release.workflow-dispatch
49+
=======
50+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
51+
>>>>>>> main
4852
- name: Select Xcode 16.2
4953
run: sudo xcode-select --switch /Applications/Xcode_16.2.app
5054
- name: Build and upload XCFrameworks, create draft release
@@ -53,7 +57,7 @@ jobs:
5357
run: make XC_LOG=archive version=${{ github.event.inputs.version }} github_release
5458
- name: Attach Xcode logs
5559
if: '!cancelled()'
56-
uses: actions/upload-artifact@v4
60+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5761
with:
5862
name: xcode-archive-logs
5963
path: "*-archive.log"
@@ -64,7 +68,7 @@ jobs:
6468
runs-on: macos-latest
6569
steps:
6670
- name: Checkout
67-
uses: actions/checkout@v4
71+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
6872
with:
6973
ref: "${{ github.event.inputs.version }}"
7074
- name: Publish

.github/workflows/integrationTests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
runs-on: ${{ matrix.env.os }}
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3535
- name: Select ${{ matrix.env.xcode }}
3636
run: sudo xcode-select --switch /Applications/${{ matrix.env.xcode }}.app
3737
- name: Unit tests
3838
run: make XC_LOG=unit IOS_SIMULATOR="${{ matrix.env.iossim }}" TVOS_SIMULATOR="${{ matrix.env.tvossim }}" tests/unit
3939
- name: Attach Xcode logs
4040
if: '!cancelled()'
41-
uses: actions/upload-artifact@v4
41+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4242
with:
4343
name: ${{ matrix.env.xcode }}-unit-logs
4444
path: "*-unit.log"
@@ -71,14 +71,14 @@ jobs:
7171
DD_API_KEY: '${{ secrets.DD_API_KEY }}'
7272
steps:
7373
- name: Checkout
74-
uses: actions/checkout@v4
74+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
7575
- name: Select ${{ matrix.env.xcode }}
7676
run: sudo xcode-select --switch /Applications/${{ matrix.env.xcode }}.app
7777
- name: Run tests for ${{ matrix.platform }}
7878
run: make XC_LOG=integration IOS_SIMULATOR="${{ matrix.env.iossim }}" TVOS_SIMULATOR="${{ matrix.env.tvossim }}" tests/integration/${{ matrix.platform }}
7979
- name: Attach Xcode logs
8080
if: '!cancelled()'
81-
uses: actions/upload-artifact@v4
81+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8282
with:
8383
name: ${{ matrix.env.xcode }}-${{ matrix.platform }}-integration-log
8484
path: "*-integration.log"

0 commit comments

Comments
 (0)