Skip to content

Commit

Permalink
Fix CodeQL Execution on GitHub Hosted Runners (#94)
Browse files Browse the repository at this point in the history
# Fix CodeQL Execution on GitHub Hosted Runners

## ♻️ Current situation & Problem
- CodeQL is failing on GitHub hosted runners:
github/codeql-action#2506 (comment)

## ⚙️ Release Notes 
- Fix CodeQL Execution on GitHub Hosted Runners

### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).

Signed-off-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
PSchmiedmayer authored Jan 17, 2025
1 parent 44403d2 commit 84f0ea8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/xcodebuild-or-fastlane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 84f0ea8

Please sign in to comment.