From 450e74b35dab4b282b6a27776822ed8e22a32e19 Mon Sep 17 00:00:00 2001 From: Nuxgrid Date: Wed, 29 Jul 2026 10:58:14 +0200 Subject: [PATCH] chore add gosec in ci --- .gitea/workflows/ci-api.yml | 7 +++++++ web/src/components/BackofficeLayout.tsx | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/.gitea/workflows/ci-api.yml b/.gitea/workflows/ci-api.yml index 3c53dd5..cfbd3b4 100644 --- a/.gitea/workflows/ci-api.yml +++ b/.gitea/workflows/ci-api.yml @@ -40,6 +40,13 @@ jobs: run: go test ./... continue-on-error: true + - name: Install & run gosec + working-directory: backend/gestion + continue-on-error: true + run: | + go install github.com/securego/gosec/v2/cmd/gosec@latest + gosec ./... + - name: Checkout uses: actions/checkout@v4 diff --git a/web/src/components/BackofficeLayout.tsx b/web/src/components/BackofficeLayout.tsx index 1bd4811..d1fee58 100644 --- a/web/src/components/BackofficeLayout.tsx +++ b/web/src/components/BackofficeLayout.tsx @@ -50,6 +50,7 @@ export function BackofficeLayout() { {(isAdmin || (isClient && !isPremium)) && Leads} {isClient && Abonnement} + {isAdmin || isClient && Profile} {isAdmin && Messages} {isAdmin && Démos} {isAdmin && Codes} @@ -110,6 +111,11 @@ export function BackofficeLayout() { Codes )} + {isAdmin || isClient && ( + + Profile + + )}