From 79e5afe27d89d0ea3b548060502ad92b59b924f5 Mon Sep 17 00:00:00 2001 From: Paul Schmiedmayer Date: Fri, 17 Jan 2025 14:31:35 -0800 Subject: [PATCH] Fix CodeQL Execution on GitHub Hosted Runners Signed-off-by: Paul Schmiedmayer --- .github/workflows/xcodebuild-or-fastlane.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/xcodebuild-or-fastlane.yml b/.github/workflows/xcodebuild-or-fastlane.yml index bdbc9cf..fc729b4 100644 --- a/.github/workflows/xcodebuild-or-fastlane.yml +++ b/.github/workflows/xcodebuild-or-fastlane.yml @@ -310,6 +310,14 @@ jobs: with: languages: swift db-location: '${{ inputs.path }}/.codeql' + - name: Mechanism to resolve CodeQL issue https://github.com/github/codeql-action/issues/2506#issuecomment-2594033147 + if: ${{ !env.selfhosted && inputs.codeql }} + run: | + XCODE_PATH=$(xcode-select -p) + mkdir -p $XCODE_PATH/Toolchains/XcodeDefault.xctoolchain/usr/lib + cp $XCODE_PATH/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/*.dylib $XCODE_PATH/Toolchains/XcodeDefault.xctoolchain/usr/lib + sudo mkdir -p /usr/local/lib + sudo cp $XCODE_PATH/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/*.dylib /usr/local/lib - name: Disable Password Autofill in the iOS Simulator (Deprecated) if: ${{ inputs.setupSimulators && inputs.destination != '' }} run: |