1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-10-16 07:07:26 +00:00

🔨 Add CodeQL analysis for backend and frontend

This commit is contained in:
Steffo 2021-10-23 01:14:14 +02:00
parent d9b44b5157
commit 9872a90f59
2 changed files with 54 additions and 0 deletions

View 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

View 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