Skip to content

Add CodeQL analysis workflow #4

Add CodeQL analysis workflow

Add CodeQL analysis workflow #4

name: "CodeQL Analysis"

Check failure on line 1 in .github/workflows/codeql-analysis.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/codeql-analysis.yml

Invalid workflow file

You have an error in your yaml syntax on line 1
on:
push:
branches:
- main # Runs the analysis when changes are pushed to the main branch
pull_request:
branches:
- main # Runs the analysis when a PR is opened to the main branch
jobs:
analyze:
name: Analyze code with CodeQL
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up CodeQL
uses: github/codeql-action/setup-codeql@v2
- name: Run CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
categories: 'security' # Can be 'security' or 'security-and-quality' depending on the type of scan you need