Merge pull request #162 from trimblemaps/dependabot/bundler/react_nat… #245
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CodeQL Advanced" | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| schedule: | |
| - cron: '34 15 * * 4' | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | |
| permissions: | |
| security-events: write | |
| packages: read | |
| actions: read | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: javascript-typescript | |
| build-mode: none | |
| - language: ruby | |
| build-mode: none | |
| - language: swift | |
| build-mode: manual | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - if: ${{ matrix.build-mode == 'manual' && matrix.language == 'swift' }} | |
| shell: bash | |
| run: | | |
| echo "Fetch iOS sample app frameworks" | |
| /opt/homebrew/bin/carthage bootstrap --project-directory /Users/runner/work/mobile-sdk-sample-apps/mobile-sdk-sample-apps/ios --platform iOS --use-xcframeworks | |
| echo "Build iOS sample app" | |
| /Applications/Xcode_16.4.app/Contents/Developer/usr/bin/xcodebuild build -project /Users/runner/work/mobile-sdk-sample-apps/mobile-sdk-sample-apps/ios/iOS_SDK_Sample/iOS_SDK_Sample.xcodeproj -target iOS_SDK_Sample -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 | |
| with: | |
| category: "/language:${{matrix.language}}" |