ci: add prod-tag variants to staticcheck and gosec
CI / Docker compose check (push) Failing after 19s
CI / Env docs check (push) Failing after 20s
CI / Secrets scan (push) Failing after 20s
CI / Nginx config check (push) Failing after 21s
CI / Frontend deps check (push) Failing after 25s
CI / Go build (push) Successful in 26s
CI / Knip (push) Has been skipped
CI / Frontend a11y check (push) Has been skipped
CI / go mod tidy (push) Successful in 19s
CI / Frontend build (push) Successful in 1m24s
CI / Svelte strict check (push) Has been skipped
CI / Frontend QC (audit) (push) Has been skipped
CI / Frontend QC (typecheck) (push) Has been skipped
CI / Frontend QC (lint) (push) Has been skipped
CI / Go vulnerabilities (push) Successful in 1m19s
CI / Go vet (push) Successful in 2m38s
CI / Staticcheck (push) Failing after 2m39s
CI / golangci-lint (push) Successful in 2m40s
CI / Security scan (gosec) (push) Failing after 2m46s
CI / Tests (prod) (push) Has been skipped
CI / Tests (dev) (push) Has been skipped
CI / Race (prod) (push) Has been skipped
CI / Race (dev) (push) Has been skipped

Both tools now run under test,dev and test,!dev tags, matching go-vet pattern.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-07-10 09:50:21 +01:00
co-authored by Sisyphus
parent f532b05e72
commit 9a96a7a8a1
+12 -2
View File
@@ -186,12 +186,17 @@ jobs:
mkdir -p /opt/hostedtoolcache/node/22.23.1/x64/bin
ln -sf /usr/local/bin/node /opt/hostedtoolcache/node/22.23.1/x64/bin/node
- name: Staticcheck
- name: Staticcheck (dev tags)
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck -tags "test,dev" ./...
working-directory: backend
- name: Staticcheck (prod tags)
run: |
staticcheck -tags "test,!dev" ./...
working-directory: backend
go-gosec:
name: Security scan (gosec)
needs: [go-build]
@@ -222,12 +227,17 @@ jobs:
mkdir -p /opt/hostedtoolcache/node/22.23.1/x64/bin
ln -sf /usr/local/bin/node /opt/hostedtoolcache/node/22.23.1/x64/bin/node
- name: gosec
- name: gosec (dev tags)
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec -severity medium -tags "test,dev" ./...
working-directory: backend
- name: gosec (prod tags)
run: |
gosec -severity medium -tags "test,!dev" ./...
working-directory: backend
go-mod-tidy:
name: go mod tidy
needs: [go-build]