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

Validate if all required env vars are supplied. #12879

Merged
merged 7 commits into from
Apr 24, 2024
Merged

Conversation

scheibinger
Copy link
Contributor

@scheibinger scheibinger commented Apr 18, 2024

Validate if all required env vars are supplied.
There is a similar PR in the ccip repo already: smartcontractkit/ccip#735

@scheibinger scheibinger requested review from a team as code owners April 18, 2024 13:45
@scheibinger scheibinger changed the base branch from develop to rsch.crib-refactor April 18, 2024 13:45
@scheibinger scheibinger changed the title rsch.check vars Validate if all required env vars are supplied. Apr 18, 2024

# Exit with an error if any variables were missing
if [ $missing_vars -ne 0 ]; then
echo "Total missing environment variables: $missing_vars"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might not be obvious to someone what vars they need to set from this message. WDYT about printing the $required_vars here or printing the path to the .env.example file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, I updated the script to print more instructions

Base automatically changed from rsch.crib-refactor to develop April 23, 2024 13:59
@scheibinger scheibinger marked this pull request as draft April 24, 2024 13:39
@scheibinger scheibinger marked this pull request as ready for review April 24, 2024 13:43
@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@scheibinger scheibinger added this pull request to the merge queue Apr 24, 2024
Merged via the queue into develop with commit 0f28e36 Apr 24, 2024
106 checks passed
@scheibinger scheibinger deleted the rsch.check-vars branch April 24, 2024 14:51
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.

None yet

2 participants