Skip to content

Commit

Permalink
CI: Refine CodeQL suggested by GitHub website
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Dec 16, 2023
1 parent 4a90e54 commit 307dcf6
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: [ "master" ]
schedule:
- cron: "49 22 * * 6"
- cron: '22 11 * * 2'

jobs:
analyze:
Expand All @@ -20,22 +20,23 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ cpp ]
language: [ 'c-cpp', 'python' ]

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Autobuild
uses: github/codeql-action/autobuild@v3

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

0 comments on commit 307dcf6

Please sign in to comment.