mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-15 01:17:34 +00:00
[fix] - Use Parent Context in Azure Detector (#3346)
* use context * sort imports
This commit is contained in:
parent
5f3b4521d7
commit
3dff283bb2
1 changed files with 2 additions and 2 deletions
|
@ -3,10 +3,10 @@ package azure
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
regexp "github.com/wasilibs/go-re2"
|
||||
"strings"
|
||||
|
||||
"github.com/Azure/go-autorest/autorest/azure/auth"
|
||||
regexp "github.com/wasilibs/go-re2"
|
||||
|
||||
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
|
||||
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
|
||||
|
@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
|
|||
if err != nil {
|
||||
continue
|
||||
}
|
||||
err = token.Refresh()
|
||||
err = token.RefreshWithContext(ctx)
|
||||
if err == nil {
|
||||
res.Verified = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue