Skip to content

Merge pull request #963 from rgoldberg/667-reset-without-external-pro… #154

Merge pull request #963 from rgoldberg/667-reset-without-external-pro…

Merge pull request #963 from rgoldberg/667-reset-without-external-pro… #154

Workflow file for this run

#
# .github/workflows/codeql.yaml
#
---
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
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 repo
env:
GIT_CONFIG_COUNT: 1
GIT_CONFIG_KEY_0: init.defaultBranch
GIT_CONFIG_VALUE_0: ${{github.event.repository.default_branch}}
uses: actions/checkout@v5
with:
# Include all history & tags for Scripts/version
fetch-depth: 0
- name: 🔧 Setup repo
run: Scripts/setup_workflow_repo
- 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: |
Scripts/build codeql
- name: 🔍 Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
with:
category: /language:${{matrix.language}}