From 268ac02cf5b9792291e225fdd6f90319cecb608f Mon Sep 17 00:00:00 2001 From: maze Date: Tue, 9 Sep 2025 11:15:30 +0200 Subject: [PATCH] Run gosec and upload reports --- .gitea/workflows/gosec.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/gosec.yaml b/.gitea/workflows/gosec.yaml index f31a821..50257b8 100644 --- a/.gitea/workflows/gosec.yaml +++ b/.gitea/workflows/gosec.yaml @@ -16,7 +16,16 @@ jobs: steps: - name: Checkout Source uses: actions/checkout@v3 + + - name: Prepare reports + run: mkdir -p reports + - name: Run Gosec Security Scanner uses: securego/gosec@master with: - args: ./... \ No newline at end of file + args: -fmt=json -out=reports/results.json -stdout -verbose=text ./... + + - uses: actions/upload-artifact@v4 + with: + name: gsec-results.json + path: reports/results.json \ No newline at end of file