Skip to content

Add Email OTP To B2B UI #168

Add Email OTP To B2B UI

Add Email OTP To B2B UI #168

Workflow file for this run

name: "CodeQL Advanced"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '21 15 * * 1' # Runs at 15:21 UTC every Monday
jobs:
analyze-stytch-core:
name: Analyze (swift-StytchCore)
runs-on: macos-latest
timeout-minutes: 120
permissions:
security-events: write
packages: read
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: swift
queries: security-extended
packs: codeql/swift-queries
- name: Install Swift dependencies
run: |
# Print Xcode version for debugging
xcodebuild -version
# Initialize package dependencies
xcodebuild -resolvePackageDependencies
- name: Manual build for Swift
run: |
# Clean derived data
rm -rf ~/Library/Developer/Xcode/DerivedData/*
# Build for iOS
xcodebuild clean build \
-project Stytch.xcodeproj \
-scheme StytchCore \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' \
-configuration Debug \
ONLY_ACTIVE_ARCH=YES \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_ALLOWED=NO \
GCC_OPTIMIZATION_LEVEL=0 \
SWIFT_OPTIMIZATION_LEVEL="-Onone" \
| xcpretty
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:swift/scheme:StytchCore"
analyze-stytch-ui:
name: Analyze (swift-StytchUI)
runs-on: macos-latest
timeout-minutes: 120
permissions:
security-events: write
packages: read
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: swift
queries: security-extended
packs: codeql/swift-queries
- name: Install Swift dependencies
run: |
# Print Xcode version for debugging
xcodebuild -version
# Initialize package dependencies
xcodebuild -resolvePackageDependencies
- name: Manual build for Swift
run: |
# Clean derived data
rm -rf ~/Library/Developer/Xcode/DerivedData/*
# Build for iOS
xcodebuild clean build \
-project Stytch.xcodeproj \
-scheme StytchUI \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' \
-configuration Debug \
ONLY_ACTIVE_ARCH=YES \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_ALLOWED=NO \
GCC_OPTIMIZATION_LEVEL=0 \
SWIFT_OPTIMIZATION_LEVEL="-Onone" \
| xcpretty
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:swift/scheme:StytchUI"