Skip to content

Commit

Permalink
Merge pull request #646 from rgoldberg/645-codeql
Browse files Browse the repository at this point in the history
Scan for security vulnerabilities with GitHub CodeQL
  • Loading branch information
rgoldberg authored Dec 31, 2024
2 parents af55727 + 1f7e391 commit 40b6515
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#
# .github/workflows/codeql.yml
#
---
name: CodeQL
on:
push:
pull_request:
schedule:
- cron: 44 14 * * 4
workflow_dispatch:
jobs:
analyze:
name: Analyze ${{matrix.language}}
runs-on: macos-15
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none

- language: swift
build-mode: manual
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{matrix.language}}
build-mode: ${{matrix.build-mode}}
queries: ${{matrix.language == 'swift' && '+security-and-quality' || ''}}

- name: Build Swift
if: matrix.language == 'swift'
shell: bash
run: |
script/build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: /language:${{matrix.language}}

0 comments on commit 40b6515

Please sign in to comment.