Skip to content

Commit

Permalink
[fix] - Use Parent Context in Azure Detector (#3346)
Browse files Browse the repository at this point in the history
* use context

* sort imports
  • Loading branch information
ahrav authored Sep 30, 2024
1 parent 5f3b452 commit 3dff283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/detectors/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 3dff283

Please sign in to comment.