Files
secret/.gitea/workflows/gosec.yaml
maze 268ac02cf5
Some checks failed
Test / tests (push) Successful in 31s
Run Gosec / tests (push) Failing after 56s
Run gosec and upload reports
2025-09-09 11:15:30 +02:00

31 lines
638 B
YAML

name: Run Gosec
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
container:
image: gitea/runner-images:ubuntu-latest
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: -fmt=json -out=reports/results.json -stdout -verbose=text ./...
- uses: actions/upload-artifact@v4
with:
name: gsec-results.json
path: reports/results.json