Skip to content

Update codeql.yml

Update codeql.yml #22

Workflow file for this run

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