Skip to content

Add capability to set response headers in OPA filter #3195

Add capability to set response headers in OPA filter

Add capability to set response headers in OPA filter #3195

Triggered via pull request August 15, 2023 16:15
Status Failure
Total duration 9m 26s
Artifacts

pr.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
tests: filters/openpolicyagent/opaauthorizerequest/opaauthorizerequest.go#L137
should omit nil check; len() for []*github.com/envoyproxy/go-control-plane/envoy/config/core/v3.HeaderValueOption is defined as zero (S1009)
tests: filters/openpolicyagent/opaauthorizerequest/opaauthorizerequest.go#L169
headersToAdd refers to the result of a failed type assertion and is a zero value, not the value that was being type-asserted (SA9008)
tests: filters/openpolicyagent/opaauthorizerequest/opaauthorizerequest.go#L166
this is the variable being shadowed
tests
Process completed with exit code 2.