Add CodeQL analysis workflow for security scanning #1
Workflow file for this run
This file contains 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 Analysis" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
security-scan: | |
name: Run CodeQL Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up CodeQL | |
uses: github/codeql-action/setup-codeql@v2 | |
with: | |
languages: 'swift' | |
- name: Initialize CodeQL database | |
uses: github/codeql-action/autobuild@v2 | |
- name: Run CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: security |