Skip to content

Commit

Permalink
Enable CodeQL for Swift
Browse files Browse the repository at this point in the history
  • Loading branch information
shimastripe committed Feb 26, 2024
1 parent 73e6911 commit e929b7b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CodeQL"

on:
push:
branches: [ "feature/codeql" ]
pull_request:
branches: [ "feature/codeql" ]
schedule:
- cron: '25 0 * * 0'

jobs:
analyze:
name: Analyze
runs-on: macos-13
env:
DEVELOPER_DIR: "/Applications/Xcode_15.2.0.app/Contents/Developer"
timeout-minutes: 40
permissions:
security-events: write

steps:
- name: Set up build options
run: |
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: swift
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:swift"

0 comments on commit e929b7b

Please sign in to comment.