-
Notifications
You must be signed in to change notification settings - Fork 32
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
Copy 1Password plain notes file into .env #41
Comments
I am currently stuck on this too.
This works good |
Same issue here working with Secure Notes to handle my @Rohithgilla12 your solution worked for me, thanks! |
Same issue here, would be great if there was a way |
Another solution using action 1password/install-cli-action: - name: Install 1Password CLI
uses: 1password/install-cli-action@v1
with:
version: 2.18.0
- name: Get 1Password Secrets
run: op read op://api/dev/notesPlain > .env
working-directory: ./api
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} |
Another solution using a Using the TARGET_ENV="dev" op inject -f -i ".env.template" -o ".env" The initial JWKS_ISSUER=op://$TARGET_ENV/jwks/JWKS_ISSUER
JWKS_URI=op://$TARGET_ENV/jwks/JWKS_URI
NODE_ENV=op://$TARGET_ENV/common/node_env
# gRPC endpoints:
GRPC__HEALTH__V1__HEALTH_GRPC=op://$TARGET_ENV/grpc/health_grpc |
Hello All,
I'm trying to deploy a Laravel application with a environment file saved in our 1Password vault as a secure note. In our github action we would like to use the latest copy of the environment file and add the contents to a
.env
during the deployment process. This is how we are currently doing it:When it gets to loading the
.env
file the contents of the file and error is message:Is there any way to unmask the contents?
In our local development process we have setup a Makefile command to help with downloading the latest environment file:
It would be great mimic the functionality of the Makefile command with this github action.
Thank you!
The text was updated successfully, but these errors were encountered: