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