Skip to content

Commit

Permalink
Update CodeQL workflow to include development branch and optional dat…
Browse files Browse the repository at this point in the history
…abase upload
  • Loading branch information
sergism77 committed Nov 17, 2024
1 parent 62c8155 commit 591b426
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "CodeQL Analysis"

on:
push:
branches: [ "main" ]
branches: [ "main", "development" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "development" ]
schedule:
- cron: "0 0 * * 1" # Weekly at midnight on Mondays

Expand All @@ -23,15 +23,25 @@ jobs:
language: [ "python" ] # Add other languages if applicable

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If your code is in a subdirectory, specify it here
# path: "your/subdirectory"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/${{ github.workflow }}"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/${{ github.workflow }}"

# Optional: Save CodeQL database for further local analysis
- name: Upload CodeQL Database (Optional)
if: always()
uses: actions/upload-artifact@v3
with:
name: codeql-database
path: ./.github/codeql-database

0 comments on commit 591b426

Please sign in to comment.