Commit 68cd937
ci: add vuln scanning + module verify, and streamline the test workflow (#409)
* ci: add govulncheck scan and module integrity verification
Add a vulncheck job that runs govulncheck against the dependency
graph, reporting only vulnerabilities reachable from our code, and
a `go mod verify` step in the build job to catch tampering of the
restored module cache before builds trust it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: collapse go test jobs into a matrix and un-gate build
The unit, e2e, integration, and contract jobs shared identical
checkout/setup-go/cache boilerplate and differed only in the test
command, so they now run as a single matrix job. Check names are
preserved (Unit Tests, E2E Tests, Integration Tests, Contract Replay
Tests) so required status checks keep matching.
The build job no longer waits on the test jobs — compiling the binary
doesn't depend on tests passing, so it now runs in parallel and
shortens the critical path.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: harden vulncheck job (timeout + swagger-tag scan)
Address review feedback on the vulncheck job:
- Add timeout-minutes: 10 so a hung govulncheck can't run to the
360-minute default.
- Add a second govulncheck run with -tags=swagger to cover the
swagger-tagged production build (swagger_enabled.go), which the
default tag set excludes. The tests/* suites behind e2e/integration/
contract tags are intentionally not scanned — they aren't shipped.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: pin govulncheck to v1.3.0
Replace @latest with an explicit version so the vulnerability gate is
reproducible and doesn't drift with upstream releases. v1.3.0 is the
current latest; bump intentionally when updating.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 58eb867 commit 68cd937
1 file changed
Lines changed: 43 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
43 | 58 | | |
44 | 59 | | |
45 | 60 | | |
| |||
49 | 64 | | |
50 | 65 | | |
51 | 66 | | |
52 | | - | |
53 | | - | |
| 67 | + | |
| 68 | + | |
54 | 69 | | |
55 | 70 | | |
| 71 | + | |
56 | 72 | | |
57 | 73 | | |
58 | 74 | | |
| |||
73 | 89 | | |
74 | 90 | | |
75 | 91 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 92 | + | |
| 93 | + | |
108 | 94 | | |
109 | 95 | | |
110 | 96 | | |
| |||
115 | 101 | | |
116 | 102 | | |
117 | 103 | | |
118 | | - | |
119 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
120 | 107 | | |
121 | | - | |
122 | | - | |
| 108 | + | |
| 109 | + | |
123 | 110 | | |
| 111 | + | |
124 | 112 | | |
125 | 113 | | |
126 | 114 | | |
| |||
130 | 118 | | |
131 | 119 | | |
132 | 120 | | |
133 | | - | |
134 | | - | |
135 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
136 | 131 | | |
137 | 132 | | |
138 | 133 | | |
| |||
153 | 148 | | |
154 | 149 | | |
155 | 150 | | |
| 151 | + | |
| 152 | + | |
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
159 | | - | |
160 | 156 | | |
161 | 157 | | |
162 | 158 | | |
| |||
166 | 162 | | |
167 | 163 | | |
168 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
0 commit comments