Skip to content

Commit

Permalink
feat: added code scanning through CodeQL (#4805)
Browse files Browse the repository at this point in the history
* feat: added code scanning through CodeQL

* Removed comments and pinned action to commit sha

* fixed syntax error
  • Loading branch information
mohamedzeidan2021 authored Jul 25, 2024
1 parent 58bdbd0 commit 6758bd6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "CodeQL"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '30 8 * * *'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ 'ubuntu-latest' }}
permissions:
security-events: write
packages: read

strategy:
matrix:
include:
- language: python
build-mode: none
- language: java-kotlin
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@6ccd57f4c5d15bdc2fef309bd9fb6cc9db2ef1c6
- name: Initialize CodeQL
uses: github/codeql-action/init@4b1d7da102ff94aca014c0245062b1a463356d72
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@4b1d7da102ff94aca014c0245062b1a463356d72
with:
category: "/language:${{matrix.language}}"

0 comments on commit 6758bd6

Please sign in to comment.