-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alex
committed
Nov 13, 2024
1 parent
fed711e
commit 993003e
Showing
1 changed file
with
13 additions
and
18 deletions.
There are no files selected for viewing
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
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 |