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

Update environment variable handling for local and CI/CD #2

Merged
merged 6 commits into from
Dec 4, 2024
Merged

Conversation

sirajvind
Copy link
Owner

This pull request updates the handling of environment variables to support both local development and CI/CD environments. The changes include:

  • Added a helper function \loadEnv\ to load environment variables from .env, \secrets.json, or GitHub Secrets.
  • Updated the \swg-login-form.spec.js\ test file to use the \loadEnv\ function.
  • Updated the GitHub Actions workflow to parse the \SECRETS_JSON\ secret and set environment variables.

These changes ensure that sensitive information is handled securely and efficiently across different environments.

@sirajvind
Copy link
Owner Author

Test- Passed

@sirajvind sirajvind merged commit ae0838c into main Dec 4, 2024
1 check passed
@sirajvind sirajvind deleted the stage branch December 4, 2024 14:05
@sirajvind sirajvind restored the stage branch December 4, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant