Commit e31b112
committed
ci(gosec): use go.mod for Go version and add manual trigger
The scheduled Gosec run silently produced 0 findings because setup-go
resolved 'go-version: 1.26.x' to an older patch than go.mod requires
(go 1.26.5) while GOTOOLCHAIN=local blocked a toolchain download, so the
package loader failed for every package.
Read the Go version from go.mod so it can never drift from the module's
requirement, and add workflow_dispatch for manual runs.1 parent ef6c9dd commit e31b112
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments