Manage secrets
Pass sensitive parameters like usernames and passwords to Maestro Cloud tests via environment variables using the -e CLI option.
Define environment variables
maestro cloud \
--api-key "<YOUR_API_KEY>" \
--project-id "<YOUR_PROJECT_ID>" \
-e USERNAME=$TEST_USERNAME \
-e PASSWORD=$TEST_PASSWORD \
--app-file "<APP_FILE>" \
--flows "<FLOW_OR_FOLDER>"- uses: mobile-dev-inc/action-maestro-cloud@v1
with:
api-key: ${{ secrets.MOBILE_DEV_API_KEY }}
app-file: <path to APK or iOS Simulator build>
env: |
USERNAME=${{ secrets.TEST_USERNAME }}
PASSWORD=${{ secrets.TEST_PASSWORD }}Use variables in your Flows
appId: com.example.app
---
- launchApp
- inputText: ${USERNAME}
- tapOn: Next
- inputText: ${PASSWORD}
- tapOn: LoginLast updated