Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CodeQL workflow for Swift #423

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "Run CodeQL"

on:
push:
branches:
- 'main'
- 'develop'
- 'release/*'
pull_request:
# The branches below must be a subset of the branches above
branches:
- 'main'
- 'develop'
- 'release/*'
schedule:
- cron: '34 2 * * 0'

jobs:
analyze:
name: Analyze
runs-on: [ macos-latest ]
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'swift' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-and-quality

- name: Build
run: |
xcodebuild -scheme Frames -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ final class CheckoutAPIServiceIntegrationTests: XCTestCase {
XCTAssertNil(tokenDetails.billingAddress)
XCTAssertEqual(tokenDetails.cardCategory, "CONSUMER")
XCTAssertEqual(tokenDetails.cardType, "DEBIT")
XCTAssertEqual(tokenDetails.issuer, "CURVE UK LIMITED")
XCTAssertEqual(tokenDetails.issuer, "WISE PAYMENTS LIMITED")
XCTAssertEqual(tokenDetails.issuerCountry, "GB")
XCTAssertNil(tokenDetails.phone)
XCTAssertEqual(tokenDetails.productId, "MDW")
Expand Down