diff --git a/cli/azd/pkg/auth/cache_windows.go b/cli/azd/pkg/auth/cache_windows.go index d3455feb014..13832a191a5 100644 --- a/cli/azd/pkg/auth/cache_windows.go +++ b/cli/azd/pkg/auth/cache_windows.go @@ -85,6 +85,7 @@ func (c *encryptedCache) Read(key string) ([]byte, error) { // to the new format. encryptedBlob = windows.DataBlob{ + //nolint:gosec // G115: integer overflow conversion int -> uint32 Size: uint32(len(val)), Data: &val[0], } @@ -100,6 +101,7 @@ func (c *encryptedCache) Read(key string) ([]byte, error) { } encryptedBlob = windows.DataBlob{ + //nolint:gosec // G115: integer overflow conversion int -> uint32 Size: uint32(len(data)), Data: &data[0], } diff --git a/cli/azd/pkg/exec/cmdtree_windows.go b/cli/azd/pkg/exec/cmdtree_windows.go index fea99d5a35d..39776ff871c 100644 --- a/cli/azd/pkg/exec/cmdtree_windows.go +++ b/cli/azd/pkg/exec/cmdtree_windows.go @@ -57,6 +57,7 @@ func (o *CmdTree) Start() error { return fmt.Errorf("failed to set job object info: %w", err) } + //nolint:gosec // G115: integer overflow conversion int -> uint32 process, err := windows.OpenProcess(windows.PROCESS_SET_QUOTA|windows.PROCESS_TERMINATE, false, uint32(o.Process.Pid)) if err != nil { return fmt.Errorf("failed to open process: %w", err)