deploy/audit.sh

ac8d910ff31c2fadc452928e1d56c64b4af25495
gitbay/deploy/audit.sh

24 lines · 980 bytes · executable

 1#!/bin/sh
 2# Security checks to run before a release (and periodically). Exits non-zero
 3# on any finding so it can gate CI.
 4set -eu
 5cd "$(dirname "$0")/.."
 6
 7echo "== go vet =="
 8go vet ./...
 9
10echo "== govulncheck =="
11go run golang.org/x/vuln/cmd/govulncheck@latest ./...
12
13echo "== fuzz smoke (10s each parser) =="
14go test -run xxx -fuzz FuzzReadPktLine -fuzztime 10s ./internal/gitd/
15go test -run xxx -fuzz FuzzParseCommit -fuzztime 10s ./internal/sig/
16go test -run xxx -fuzz FuzzDecodeArmorAndParseSSHSig -fuzztime 10s ./internal/sig/
17go test -run xxx -fuzz FuzzParsePGPKey -fuzztime 10s ./internal/sig/
18go test -run xxx -fuzz FuzzTokenizeNoPanic -fuzztime 10s ./internal/protocol/
19go test -run xxx -fuzz FuzzReply -fuzztime 10s ./internal/mailin/
20go test -run xxx -fuzz FuzzAuthResults -fuzztime 10s ./internal/mailin/
21go test -run xxx -fuzz FuzzDKIM -fuzztime 10s ./internal/mailin/
22go test -run xxx -fuzz FuzzReadResponse -fuzztime 10s ./internal/imapc/
23
24echo "== all clear =="
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form