mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-21 22:34:21 +00:00
🔨 Add CodeQL analysis for backend and frontend
This commit is contained in:
parent
d9b44b5157
commit
9872a90f59
2 changed files with 54 additions and 0 deletions
27
.github/workflows/analyze-codeql-backend.yml
vendored
Normal file
27
.github/workflows/analyze-codeql-backend.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: "Analyze backend using CodeQL"
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- "backend/**"
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- "backend/**"
|
||||
jobs:
|
||||
analyze:
|
||||
name: "Analyze backend"
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: "python"
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
27
.github/workflows/analyze-codeql-frontend.yml
vendored
Normal file
27
.github/workflows/analyze-codeql-frontend.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: "Analyze frontend using CodeQL"
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- "frontend/**"
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- "frontend/**"
|
||||
jobs:
|
||||
analyze:
|
||||
name: "Analyze frontend"
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: "javascript"
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
Loading…
Reference in a new issue