Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publicly accessible S3 for PRs #20

Open
smessmer opened this issue Apr 26, 2021 · 1 comment
Open

Publicly accessible S3 for PRs #20

smessmer opened this issue Apr 26, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@smessmer
Copy link

I'd like to set up my S3 cache so that CI runs on pull requests can read from the cache, but for security reasons they shouldn't be able to write to it. I tried this by

  • making AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY GitHub Secrets. GitHub Actions make sure that they're only available when built in a branch of the repository, not on PRs.
  • making the S3 bucket publicly readable

Now, unfortunately, action-s3-cache doesn't seem to be able to read public S3 buckets. If I omit the AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID variables when calling it, it fails with an error

2021/04/25 23:45:09 NoCredentialProviders: no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors

What's the best way to make this work?

@brunopadz brunopadz added the help wanted Extra attention is needed label May 31, 2021
@brunopadz
Copy link
Contributor

Hi @smessmer,
We'll take a look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants