Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
Signed-off-by: Afek Berger <[email protected]>
  • Loading branch information
afek854 committed Dec 2, 2024
1 parent 9a6660e commit d9c5310
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ func (rule *R0006UnexpectedServiceAccountTokenAccess) ProcessEvent(eventType uti
return nil
}

converedEvent, ok := event.(*events.OpenEvent)
convertedEvent, ok := event.(*events.OpenEvent)
if !ok {
return nil
}

openEvent := converedEvent.Event
openEvent := convertedEvent.Event

// Check if this is a token path - using optimized check
if getTokenBasePath(openEvent.FullPath) == "" {
Expand Down

0 comments on commit d9c5310

Please sign in to comment.