feat: improve navigation and add security scans
Security / Secrets (gitleaks) (push) Successful in 1m29s
Lint / Lint (push) Successful in 1m43s
Security / Dependencies (Trivy) (push) Successful in 1m59s
Security / Code (Semgrep) (push) Successful in 3m34s
Tests / Dashboard checks (push) Successful in 1m2s
Tests / Go backend (push) Successful in 3m13s
Docker / Docker Build & Push (push) Successful in 8m15s

- Hide the lone navigation tab and show mobile menus as overlays
- Add secret, code, and dependency scanning to CI
- Update test workflows and remove an unused frontend dependency
This commit is contained in:
Gabriel20xx committed 2026-10-27 09:54:10 +00:00
1 parent 85e6db67b5
commit 817236f349
23 files changed
+299 -74

No files matched your search

+6 -6
View File
@@ -433,13 +433,13 @@ func TestUpdateMeValidatesAndForwardsToAuthGuard(t *testing.T) {
t.Fatalf("ordinary user: status = %d, want 403", rec.Code)
}
for name, body := range map[string]string{
"bad email": `{"email":"nope","username":"boss"}`,
"at in username": `{"email":"a@b.com","username":"a@b.com"}`,
"short password": `{"email":"a@b.com","username":"boss","password":"short"}`,
"long password": `{"email":"a@b.com","username":"boss","password":"` + strings.Repeat("a", 73) + `"}`,
"bad email": `{"email":"nope","username":"boss"}`,
"at in username": `{"email":"a@b.com","username":"a@b.com"}`,
"short password": `{"email":"a@b.com","username":"boss","password":"short"}`,
"long password": `{"email":"a@b.com","username":"boss","password":"` + strings.Repeat("a", 73) + `"}`,
"missing current password": `{"email":"a@b.com","username":"boss","password":"new-password"}`,
"missing current totp": `{"email":"a@b.com","username":"boss","password":"new-password","currentPassword":"current-password"}`,
"not JSON": `nope`,
"missing current totp": `{"email":"a@b.com","username":"boss","password":"new-password","currentPassword":"current-password"}`,
"not JSON": `nope`,
} {
if rec := update(manager, body); rec.Code != http.StatusBadRequest {
t.Errorf("%s: status = %d, want 400", name, rec.Code)