Skip to content

Fix Swift CodeQL build collision in Analyze workflow#159

Draft
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-github-actions-analyze-swift
Draft

Fix Swift CodeQL build collision in Analyze workflow#159
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-github-actions-analyze-swift

Conversation

Copilot AI commented Jun 7, 2026

Copy link
Copy Markdown

The Analyze (swift) CodeQL job fails during xcodebuild because both app and extension targets emit colliding Swift module artifacts after CI-generated signing config stubs strip target identity. This change restores minimal target-specific xcconfig values in CI so Swift outputs are disambiguated.

  • Swift CodeQL workflow fix

    • Updated .github/workflows/codeql.yml in analyze-swiftCreate stub xcconfig files.
    • Replaced no-op stubs with explicit per-target values:
      • PRODUCT_MODULE_NAME
      • PRODUCT_NAME
      • PRODUCT_BUNDLE_IDENTIFIER
      • ARCHS
      • ONLY_ACTIVE_ARCH
  • Collision prevention

    • Ensures ProxyBridge and extension build with distinct module metadata, preventing Multiple commands produce .../.swiftmodule/... conflicts in Release universal builds used by CodeQL.
- name: Create stub xcconfig files
  run: |
    cat > MacOS/ProxyBridge/Signing-Config-app.xcconfig << 'EOF'
    PRODUCT_MODULE_NAME = ProxyBridge
    PRODUCT_NAME = ProxyBridge
    PRODUCT_BUNDLE_IDENTIFIER = com.interceptsuite.ProxyBridge
    ARCHS = arm64 x86_64
    ONLY_ACTIVE_ARCH = NO
    EOF
    cat > MacOS/ProxyBridge/Signing-Config-ext.xcconfig << 'EOF'
    PRODUCT_MODULE_NAME = com_interceptsuite_ProxyBridge_extension
    PRODUCT_NAME = extension
    PRODUCT_BUNDLE_IDENTIFIER = com.interceptsuite.ProxyBridge.extension
    ARCHS = arm64 x86_64
    ONLY_ACTIVE_ARCH = NO
    EOF

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'Analyze (swift)' Fix Swift CodeQL build collision in Analyze workflow Jun 7, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 7, 2026

Copy link
Copy Markdown

Copilot AI requested a review from Anof-cyber June 7, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants