From 1238666980c8fe39cb1e0fb3f435f62cab794bc5 Mon Sep 17 00:00:00 2001 From: Shane C Date: Fri, 6 Sep 2024 10:31:37 -0400 Subject: [PATCH] add goscan action (insert spiderman meme) --- .forgejo/workflows/gosec.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .forgejo/workflows/gosec.yml diff --git a/.forgejo/workflows/gosec.yml b/.forgejo/workflows/gosec.yml new file mode 100644 index 0000000..6beb3e1 --- /dev/null +++ b/.forgejo/workflows/gosec.yml @@ -0,0 +1,20 @@ +name: Gosec Check +on: + push: + branches: ["main"] + workflow_dispatch: + +jobs: + gosec: + name: Gosec Check + runs-on: node20-bookworm + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.21' + - run: go mod download && go install github.com/a-h/templ/cmd/templ@latest + - run: templ generate + - name: Run Gosec Security Scanner + uses: actions/goscan@main \ No newline at end of file