Skip to content

Commit

Permalink
Merge branch 'master' into CI-13178_go_upgrade_maltware_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rahkumar56 authored Jul 3, 2024
2 parents 733112f + 503f6b5 commit 768c711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/backend/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ func (b *Backend) List(ctx context.Context, p string) ([]common.FileEntry, error
}

func assumeRole(roleArn, roleSessionName string, externalID string) *credentials.Credentials {
client := sts.New(session.New()) // nolint:staticcheck
sess, _ := session.NewSession()
client := sts.New(sess) // nolint:staticcheck
duration := time.Hour * 1
stsProvider := &stscreds.AssumeRoleProvider{
Client: client,
Expand Down

0 comments on commit 768c711

Please sign in to comment.