Update codeql.yml #22
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" | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| security-events: write | |
| # Allow one concurrent scan | |
| concurrency: | |
| group: "codeql-scan" | |
| cancel-in-progress: true | |
| jobs: | |
| analyze: | |
| name: Analyze Swift with CodeQL | |
| runs-on: macos-14 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ 'swift' ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Cache Swift build artifacts | |
| uses: actions/cache@v3 | |
| with: | |
| path: .build | |
| key: swift-build-${{ runner.os }}-${{ hashFiles('**/*.swift') }} | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: Build | |
| run: swift build --configuration release | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 |