GitHub env secrets cannot be used for AWS access key #88652
Replies: 1 comment
-
I found the answer reading GitHub Secrets documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greeting GitHub Community!!! I am new to github and I need help.
I am using github as a part of Cloud Resume Challenge.
I wanted to sync my github repository with AWS S3.
I watched some tutorial on YouTube and they used GitHub secrets.
However, when I use github env secrets the github actions doesn't pull the secrets.
While if I use my AWS credentials as plain text, it works fine.
Here is the code:
name: Upload Website
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jakejarvis/s3-sync-action@master
with:
args: --acl private --follow-symlinks --delete
env:
AWS_S3_BUCKET: "tanbol-test"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "eu-north-1"
The error message is:
AWS_ACCESS_KEY_ID is not set. Quitting.
Beta Was this translation helpful? Give feedback.
All reactions