-
Notifications
You must be signed in to change notification settings - Fork 478
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
AWS_S3_BUCKET is not set. Quitting. #53
Comments
Can you paste your step please? |
Here are mine: update-s3-bucket:
runs-on: ubuntu-latest
steps:
- name: 'S3 Bucket sync'
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }} # optional: defaults to us-east-1
SOURCE_DIR: 'reports' # optional: defaults to entire repository getting the same error error is coming from here: Lines 5 to 8 in 7ed8b11
|
Hi @aljones15. I have the same configuration as you. Can you try to set manually the bucket name in the action? It looks like the secret is not being pulled. |
did that now getting: AWS_ACCESS_KEY_ID is not set. Quitting. yeah this is weird. any idea why the secrets are not showing up?
The secrets are set as |
Not a clue. But it's definitely something with your secrets. Try to delete the secrets and add it again. Are you using organisational secrets or repository ones? Try on the repo itself. |
Thank you for the help. I was using environment secrets. I think the issue with those was that I was not telling it what environment to use. Using the repo level secrets did work, but now it can't find the dir I want to sync with the bucket. |
The |
I checked and I seem to be in an empty docker container, not sure how to get the dir that results from the test run to be available to the aws cli docker.
|
Why are you using two separated jobs? You can add to the test-node (where you do the checkout) the 'S3 Bucket sync' step. Or, do the checkout again in the update-s3-bucket job. Since you are doing the checkout on the first job, and not the second one, you get the empty dir. |
I'm a total noob with github actions. Thanks for the help and it is working. Just updated my s3 bucket/ website with fresh reports for the w3c. Thanks for your time and effort. |
Update: we found the issue. Right before it stopped working the repo was deleted and then restored. The GitHub secret was set at organisation level with custom access. The binding was lost after the deletion/restore. Everything is working fine again now. |
name: Node.js CI on: [push] jobs:
|
My AWS bucket is in fact set, but I keep getting this error message so my action won't work to completion. Should I include the static website endpoint instead or in addition to the bucket name? I know the bucket is correct, but it's not being recognized at all.
The text was updated successfully, but these errors were encountered: