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

Add check for FIREBASE_TOKEN existence #48

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

koral--
Copy link
Contributor

@koral-- koral-- commented Oct 18, 2022

Warn when both token (either as input or environment variable) and service credentials are defined at the same time

Warn when both token (either as input or environment variable) and service credentials are defined at the same time
@@ -168,8 +168,12 @@ if [ -z "${firebase_token}" ] ; then
fi
fi

if [ -n "${FIREBASE_TOKEN}" ] && [ -n "${service_credentials_file}" ]; then
echo_warn "Both authentication methods are defined: Firebase Token (via FIREBASE_TOKEN environment variable) and Service Credentials Field, one is enough."
Copy link
Owner

Choose a reason for hiding this comment

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

hey, why do we have to use the uppercase one? I thought the lowercase one was already filled with the environment variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have to. We even shouldn't use it. However, it is still recognized by CLI and a lot of people just call the secrets like that - FIREBASE_TOKEN.

@guness guness merged commit 5b0f5c0 into guness:master Oct 19, 2022
@koral-- koral-- deleted the firebase_token_env_check branch October 19, 2022 09:08
guness pushed a commit that referenced this pull request Dec 15, 2023
Warn when both token (either as input or environment variable) and service credentials are defined at the same time
guness pushed a commit that referenced this pull request Jan 22, 2024
* Add check for FIREBASE_TOKEN existence (#48)

Warn when both token (either as input or environment variable) and service credentials are defined at the same time

* Addressing race condition

* adding ID print so I know

* removing print

* Update enviornment var when using URL

---------

Co-authored-by: Karol Wrótniak <[email protected]>
guness added a commit that referenced this pull request Oct 10, 2024
* Add check for FIREBASE_TOKEN existence (#48)

Warn when both token (either as input or environment variable) and service credentials are defined at the same time

* Skip installing firebase-tools if it exists

---------

Co-authored-by: Karol Wrótniak <[email protected]>
Co-authored-by: Sinan Gunes <[email protected]>
guness added a commit that referenced this pull request Oct 10, 2024
* Add check for FIREBASE_TOKEN existence (#48)

Warn when both token (either as input or environment variable) and service credentials are defined at the same time

* Added Firebase AD Release ID output

---------

Co-authored-by: Karol Wrótniak <[email protected]>
Co-authored-by: Sinan Gunes <[email protected]>
guness added a commit that referenced this pull request Oct 30, 2024
* Add check for FIREBASE_TOKEN existence (#48)

Warn when both token (either as input or environment variable) and service credentials are defined at the same time

* get apk url and set apk url environment

---------

Co-authored-by: Karol Wrótniak <[email protected]>
Co-authored-by: Sinan Gunes <[email protected]>
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.

2 participants