dev #13

Merged
JoeKung merged 23 commits from dev into main 2026-03-03 18:28:30 +01:00
Showing only changes of commit 173a6b70d2 - Show all commits

View File

@@ -69,7 +69,7 @@ jobs:
git commit -m "style: apply prettier formatting"
git push origin "HEAD:${PR_BRANCH}"
qodana:
security-sast:
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -77,18 +77,40 @@ jobs:
with:
fetch-depth: 0
- name: Qodana Scan
uses: JetBrains/qodana-action@v2025.3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
cache-dir: /tmp
results-dir: /tmp
args: -i,backend
pr-mode: true
use-caches: false
post-pr-comment: false
use-annotations: true
python-version: '3.12'
- name: Install Semgrep
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install semgrep
- name: Run Semgrep (SAST)
shell: bash
run: |
semgrep --config auto --error \
--exclude frontend/node_modules \
--exclude backend/build \
backend/src frontend/src
- name: Install Gitleaks
shell: bash
run: |
set -euo pipefail
VERSION="8.24.2"
curl -sSL "https://github.com/gitleaks/gitleaks/releases/download/v${VERSION}/gitleaks_${VERSION}_linux_x64.tar.gz" \
-o /tmp/gitleaks.tar.gz
tar -xzf /tmp/gitleaks.tar.gz -C /tmp
install -m 0755 /tmp/gitleaks /usr/local/bin/gitleaks
gitleaks version
- name: Run Gitleaks (secrets scan)
shell: bash
run: |
gitleaks detect --source . --no-git --redact --exit-code 1
test-backend:
runs-on: ubuntu-latest