diff --git a/.gitea/workflows/code-analysis.yml b/.gitea/workflows/code-analysis.yml index 53121b3..f8c6d30 100644 --- a/.gitea/workflows/code-analysis.yml +++ b/.gitea/workflows/code-analysis.yml @@ -31,3 +31,18 @@ jobs: - name: Semgrep (SAST) run: semgrep --config p/default --error . + + - name: npm audit (high+) + run: npm audit --audit-level=high || true + + - name: OSV-Scanner (SCA) + run: | + curl -L -o osv-scanner https://github.com/google/osv-scanner/releases/latest/download/osv-scanner_linux_amd64 + chmod +x osv-scanner + ./osv-scanner --lockfile package-lock.json + + - name: gitleaks (Secrets Scanning) + run: | + curl -sSL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks_linux_x64.tar.gz \ + | tar -xz gitleaks + ./gitleaks detect --source . --no-git --redact --exit-code 1 diff --git a/components/Footer.vue b/components/Footer.vue index 6e6abca..fa1e731 100644 --- a/components/Footer.vue +++ b/components/Footer.vue @@ -100,7 +100,7 @@ const isMemberMenuOpen = ref(false) // Reactive auth state from store const isLoggedIn = computed(() => authStore.isLoggedIn) -const isAdmin = computed(() => authStore.isAdmin) +// const isAdmin = computed(() => authStore.isAdmin) const toggleMemberMenu = () => { isMemberMenuOpen.value = !isMemberMenuOpen.value diff --git a/components/MannschaftenUebersicht.vue b/components/MannschaftenUebersicht.vue index aaf544e..45f3ea9 100644 --- a/components/MannschaftenUebersicht.vue +++ b/components/MannschaftenUebersicht.vue @@ -103,7 +103,7 @@