Skip to content

Commit

Permalink
Add CodeQL analysis workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Nov 13, 2024
1 parent fed711e commit 993003e
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
name: "CodeQL Analysis"

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:
name: "CodeQL Analysis"
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
name: Analyze code with CodeQL
runs-on: ubuntu-latest

steps:
- name: Checkout repository
- 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
uses: github/codeql-action/analyze@v2
with:
categories: 'security' # Can be 'security' or 'security-and-quality'

categories: 'security' # Can be 'security' or 'security-and-quality' depending on the type of scan you need

0 comments on commit 993003e

Please sign in to comment.