Skip to content

Commit

Permalink
Create codeql-analysis.yml (#214)
Browse files Browse the repository at this point in the history
* Create codeql-analysis.yml

- making the custom codeql file.

* Update codeql-analysis.yml

- trying pip install .

* Update codeql-analysis.yml

- no pip install reqs.

* Update codeql-analysis.yml

- ahh, can't isntall need venv ?

* Update codeql-analysis.yml

- need those quotes...
  • Loading branch information
carlkidcrypto authored Oct 9, 2024
1 parent 83d7906 commit c8a8560
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * *'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'c++' ]

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Install Linux Dependencies
run: |
sudo apt-get update;
sudo apt-get install -y libsnmp-dev libperl-dev;
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Build Python Extension
run: |
pip install .
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit c8a8560

Please sign in to comment.