fix: check value length
This commit is contained in:
parent
2477e8b82a
commit
bf1d367b7c
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,10 @@ func (r *Reporter) SetOutputs(outputs map[string]string) {
|
|||
r.logf("ignore output because the key is too long: %q", k)
|
||||
continue
|
||||
}
|
||||
if l := len(v); l > 1024*1024 {
|
||||
log.Println("ignore output because the value is too long:", k, l)
|
||||
r.logf("ignore output because the value %q is too long: %d", k, l)
|
||||
}
|
||||
if _, ok := r.outputs.Load(k); ok {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue