Compare commits

...
1 Commits
Author SHA1 Message Date
a8faa6061f ci(pr): grant actions read so the shared PR checks start (#242)
* ci(pr): grant actions read so the shared PR checks start

go-pr.yaml's CodeQL job asks for actions: read. A reusable workflow cannot ask
for more than its caller grants, so the whole PR run failed at startup with no
jobs. Grant the missing scope.

* fix(deps): bump gorilla/websocket past GO-2026-6278

govulncheck reports the weak WebSocket mask-key PRNG in v1.5.3; the fix is
v1.5.4-0.20240701034025-d67f41855da4.

* test(scanner): drop the unused resultStore.saved helper

staticcheck U1000: the tests read store.savedResults directly, so the helper
has no callers.

---------

Co-authored-by: Bug Fixer <[email protected]>
2026-12-03 12:22:46 +00:00
4 changed files with 4 additions and 7 deletions
+1
View File
@@ -10,6 +10,7 @@ on:
- "!main"
permissions:
actions: read
contents: read
pull-requests: write
security-events: write
+1 -1
View File
@@ -12,7 +12,7 @@ require (
github.com/go-sql-driver/mysql v1.11.0
github.com/goccy/go-json v0.12.0
github.com/gofiber/fiber/v3 v3.7.0
github.com/gorilla/websocket v1.5.3
github.com/gorilla/websocket v1.5.4-0.20240701034025-d67f41855da4
github.com/lib/pq v1.12.3
github.com/prometheus/client_golang v1.25.0
github.com/prometheus/client_model v0.6.3
+2
View File
@@ -119,6 +119,8 @@ github.com/gorilla/sessions v1.2.1 h1:DHd3rPN5lE3Ts3D8rKkQ8x/0kqfeNmBAaiSi+o7Fsg
github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM=
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/gorilla/websocket v1.5.4-0.20240701034025-d67f41855da4 h1:PYKzliEgITjLJoJqbV90S0YRaG8LNAsICH6fp6MApC0=
github.com/gorilla/websocket v1.5.4-0.20240701034025-d67f41855da4/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA=
github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-uuid v1.0.4 h1:ZrN80XjMzpRYk+2FxMDy2A2zz0d5QjJ7GMFSkZLj12A=
-6
View File
@@ -364,12 +364,6 @@ func (m *resultStore) GetScanResult(context.Context, string, string, string) (*m
return m.scan, nil
}
func (m *resultStore) saved() []*metadata.ScanResult {
m.mu.Lock()
defer m.mu.Unlock()
return append([]*metadata.ScanResult(nil), m.savedResults...)
}
func TestScanPackage_InfrastructureErrorIsMarked(t *testing.T) {
store := &stubMetadataStore{}
mgr := newTestManager(t, store)