Read GH Secrets to set env vars#38442
Conversation
|
@mkhutornyi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@hayata-suenaga this doesn't require C+ review, right? |
|
@mkhutornyi no I don't think we need a C+ review. |
| const useWebProxy = get(Config, 'USE_WEB_PROXY', 'true') === 'true'; | ||
| const expensifyComWithProxy = getPlatform() === 'web' && useWebProxy ? '/' : expensifyURL; | ||
| const googleGeolocationAPIKey = get(Config, 'GOOGLE_GEOLOCATION_API_KEY', 'AIzaSyBqg6bMvQU7cPWDKhhzpYqJrTEnSorpiLI'); | ||
| const googleGeolocationAPIKey = get(Config, 'GCP_GEOLOCATION_API_KEY', ''); |
There was a problem hiding this comment.
@hayata-suenaga did you mean to remove the default value here?
There was a problem hiding this comment.
yes we want to avoid exposing any GCP keys that might result in Expensify being charged for the usage.
I'll add another commit to add a documentation on how to create the GCP key if engineers want to test the current location feature on the local environment
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.4.56-0 🚀
|
|
@hayata-suenaga Could you help us with QA steps with more details? |
|
@hayata-suenaga @roryabraham could help with the QA steps? |
|
oops sorry, I forgot to update the OP 🙇
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.56-8 🚀
|
@roryabraham, as you're familiar with the GH workflow files, I'd appreciate if you could review this PR 🙇
Details
This PR modifies the GitHub Workflow for building the App to use the GitHub Secrets added in this internal ticket.
The GH Secrets contains the GCP Geolocation key that is used by the desktop app to fetch the current user location.
Reference to the Electron documentation on the need for the GCP key to fetch the user's current location
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/363543
PROPOSAL: Internal
Tests
This PR modifies the GH workflow for building apps. I will test this PR by running a build workflow
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop