Skip to content

Commit

Permalink
Fix NoCredentialProviders error when accessing public bucket on Minio (
Browse files Browse the repository at this point in the history
…#133)

* Regenerate: Fix README CI failures

Signed-off-by: Kemal Akkoyun <[email protected]>

* fix #132

Co-authored-by: Kemal Akkoyun <[email protected]>
Co-authored-by: Antonio Kovačeivć <[email protected]>
Co-authored-by: Kemal Akkoyun <[email protected]>
  • Loading branch information
4 people authored Aug 3, 2020
1 parent 5452b01 commit 8a3c468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- Fixed Anonymous Credentials Error on public buckets
- Fixes [#132](https://github.com/meltwater/drone-cache/issues/132)

### Added

- [#102](https://github.com/meltwater/drone-cache/pull/102) Implement option to disable cache rebuild if it already exists in storage.
Expand Down
1 change: 1 addition & 0 deletions storage/backend/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func New(l log.Logger, c Config, debug bool) (*Backend, error) {
Endpoint: &c.Endpoint,
DisableSSL: aws.Bool(!strings.HasPrefix(c.Endpoint, "https://")),
S3ForcePathStyle: aws.Bool(c.PathStyle),
Credentials: credentials.AnonymousCredentials,
}

if c.Key != "" && c.Secret != "" {
Expand Down

0 comments on commit 8a3c468

Please sign in to comment.