chore(deps): Bump github.com/sigstore/scaffolding from 0.7.11 to 0.7.16 #3918
Annotations
4 errors and 1 warning
Run chainguard-dev/actions/nodiff@4ba8d060251254fc0e65500a8d3a90013a22a8d7:
third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/decoder.go#L1
Please run ./hack/update-codegen.sh.
diff --git a/third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/decoder.go b/third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/decoder.go
index d9a00f21..1e4fb972 100644
--- a/third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/decoder.go
+++ b/third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/decoder.go
@@ -397,6 +397,11 @@ func (d *decoder) decodeMap(name string, node ast.Node, result reflect.Value) er
}
func (d *decoder) decodePtr(name string, node ast.Node, result reflect.Value) error {
+ // if pointer is not nil, decode into existing value
+ if !result.IsNil() {
+ return d.decode(name, node, result.Elem())
+ }
+
// Create an element of the concrete (non pointer) type and decode
// into that. Then set the value of the pointer to this type.
resultType := result.Type()
|
Run chainguard-dev/actions/nodiff@4ba8d060251254fc0e65500a8d3a90013a22a8d7:
third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/hcl/parser/parser.go#L1
Please run ./hack/update-codegen.sh.
diff --git a/third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/hcl/parser/parser.go b/third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/hcl/parser/parser.go
index 64c83bcf..985ecef0 100644
--- a/third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/hcl/parser/parser.go
+++ b/third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/hcl/parser/parser.go
@@ -76,6 +76,7 @@ func (p *Parser) objectList(obj bool) (*ast.ObjectList, error) {
defer un(trace(p, "ParseObjectList"))
node := &ast.ObjectList{}
+ seenKeys := map[string]struct{}{}
for {
if obj {
tok := p.scan()
@@ -83,11 +84,26 @@ func (p *Parser) objectList(obj bool) (*ast.ObjectList, error) {
if tok.Type == token.RBRACE {
break
}
+
}
n, err := p.objectItem()
+
if err == errEofToken {
break // we are finished
+ } else if err != nil {
+ return nil, err
+ }
+
+ if n.Assign.String() != "-" {
+ for _, key := range n.Keys {
+ _, ok := seenKeys[key.Token.Text]
+ if ok {
+ return nil, errors.New(fmt.Sprintf("The argument %q at %s was already set. Each argument can only be defined once", key.Token.Text, key.Token.Pos.String()))
+
+ }
+ seenKeys[key.Token.Text] = struct{}{}
+ }
}
// we don't return a nil node, because might want to use already
@@ -225,6 +241,7 @@ func (p *Parser) objectItem() (*ast.ObjectItem, error) {
func (p *Parser) objectKey() ([]*ast.ObjectKey, error) {
keyCount := 0
keys := make([]*ast.ObjectKey, 0)
+ seenKeys := map[string]struct{}{}
for {
tok := p.scan()
@@ -268,6 +285,12 @@ func (p *Parser) objectKey() ([]*ast.ObjectKey, error) {
// object
return keys, err
case token.IDENT, token.STRING:
+ _, ok := seenKeys[p.tok.Text]
+ if ok {
+ return nil, errors.New(fmt.Sprintf("The argument %q at %s was already set. Each argument can only be defined once", p.tok.Text, p.tok.Pos.String()))
+ }
+ seenKeys[p.tok.Text] = struct{}{}
+
keyCount++
keys = append(keys, &ast.ObjectKey{Token: p.tok})
case token.ILLEGAL:
@@ -324,6 +347,8 @@ func (p *Parser) objectType() (*ast.ObjectType, error) {
// not a RBRACE, it's an syntax error and we just return it.
if err != nil && p.tok.Type != token.RBRACE {
return nil, err
+ } else if err != nil {
+ return nil, err
}
// No error, scan and expect the ending to be a brace
@@ -365,6 +390,7 @@ func (p *Parser) listType() (*ast.ListType, error) {
}
switch tok.Type {
case token.BOOL, token.NUMBER, token.FLOAT, token.STRING, token.HEREDOC:
+
node, err := p.literalType()
if err != nil {
return nil, err
|
Run chainguard-dev/actions/nodiff@4ba8d060251254fc0e65500a8d3a90013a22a8d7:
third_party/VENDOR-LICENSE/golang.org/x/exp/LICENSE#L1
Please run ./hack/update-codegen.sh.
diff --git a/third_party/VENDOR-LICENSE/golang.org/x/exp/LICENSE b/third_party/VENDOR-LICENSE/golang.org/x/exp/LICENSE
index 6a66aea5..2a7cf70d 100644
--- a/third_party/VENDOR-LICENSE/golang.org/x/exp/LICENSE
+++ b/third_party/VENDOR-LICENSE/golang.org/x/exp/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2009 The Go Authors. All rights reserved.
+Copyright 2009 The Go Authors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
@@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer.
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
- * Neither the name of Google Inc. nor the names of its
+ * Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
|
Run chainguard-dev/actions/nodiff@4ba8d060251254fc0e65500a8d3a90013a22a8d7
Process completed with exit code 1.
|
Run actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
Restore cache failed: Dependencies file is not found in /home/runner/work/policy-controller/policy-controller. Supported file pattern: go.sum
|
Loading