mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 17:15:25 +00:00
Correct spelling in "access" and add arg types (#3536)
This commit is contained in:
parent
6ffdfcf19c
commit
8ffbebb5ea
4
v2/pkg/external/customtemplates/s3.go
vendored
4
v2/pkg/external/customtemplates/s3.go
vendored
@ -76,8 +76,8 @@ func downloadToFile(downloader *manager.Downloader, targetDirectory, bucket, key
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func getS3Client(ctx context.Context, acccessKey, secretKey, region string) (*s3.Client, error) {
|
func getS3Client(ctx context.Context, accessKey string, secretKey string, region string) (*s3.Client, error) {
|
||||||
cfg, err := config.LoadDefaultConfig(ctx, config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(acccessKey, secretKey, "")), config.WithRegion(region))
|
cfg, err := config.LoadDefaultConfig(ctx, config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(accessKey, secretKey, "")), config.WithRegion(region))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user