Skip to content

Commit

Permalink
Add CodeQL scanning (#331)
Browse files Browse the repository at this point in the history
* Added CodeQL scanning
  • Loading branch information
YeagerAI-Bulat authored Aug 6, 2024
1 parent 7f88db8 commit b354fe3
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/scan-codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "CodeQL Scan"

on:
push:
branches:
- staging
pull_request:
types:
- opened
- ready_for_review
- reopened
pull_request_review:
types:
- submitted
- edited

jobs:
analyze:
name: Analyze
runs-on: [ubuntu-latest]
timeout-minutes: 10
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'python', 'javascript' ]

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

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

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

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

0 comments on commit b354fe3

Please sign in to comment.