Supporting keyless authentication in Google Cloud from GitHub Actions
Opened this issue · 2 comments
VitaSokolova commented
Hi, I wonder if this action supports keyless authentication in Google Cloud from GitHub Actions. If it doesn't, don't you have any plans regarding adding this feature?
VitaSokolova commented
I tried using such steps in my workflow:
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1
with:
workload_identity_provider: 'projects...'
service_account: '...'
- name: Upload build to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_APP_ID}}
serviceCredentialsFile: ${{ env.GOOGLE_APPLICATION_CREDENTIALS }}
groups: android
file: freeflex/build/outputs/apk/beta/freeflex-beta.apk
debug: true
But I receive an error:
4s
Run wzieba/Firebase-Distribution-Github-Action@v[1](https://github.com/TemperWorks/Temper-Android/actions/runs/4785654859/jobs/8508626003#step:9:1)
with:
appId: ***
serviceCredentialsFile: ${ GOOGLE_APPLICATION_CREDENTIALS }
groups: android
file: freeflex/build/outputs/apk/beta/freeflex-beta.apk
debug: true
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx4g -Xms1g -XX:MaxPermSize=[2](https://github.com/TemperWorks/Temper-Android/actions/runs/4785654859/jobs/8508626003#step:9:2)048m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding="UTF-8" -Dorg.gradle.daemon=false -Dorg.gradle.parallel=true
BRANCH_NAME: chore/AND-28-firebase-auth
BROWSERSTACK_USER: ***
BROWSERSTACK_KEY: ***
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.18-10/x64
JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.18-10/x64
CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/Temper-Android/Temper-Android/gha-creds-0fdb6b[3](https://github.com/TemperWorks/Temper-Android/actions/runs/4785654859/jobs/8508626003#step:9:3)7af5a58cd.json
GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/Temper-Android/Temper-Android/gha-creds-0fdb6b37af5a58cd.json
GOOGLE_GHA_CREDS_PATH: /home/runner/work/Temper-Android/Temper-Android/gha-creds-0fdb6b37af5a58cd.json
CLOUDSDK_CORE_PROJECT: temper-app-97170
CLOUDSDK_PROJECT: temper-app-97170
GCLOUD_PROJECT: temper-app-97170
GCP_PROJECT: temper-app-97170
GOOGLE_CLOUD_PROJECT: temper-app-97170
/usr/bin/docker run --name c0[4](https://github.com/TemperWorks/Temper-Android/actions/runs/4785654859/jobs/8508626003#step:9:4)422d40bfad28424080b749e0e74f3de2a[6](https://github.com/TemperWorks/Temper-Android/actions/runs/4785654859/jobs/8508626003#step:9:6)_21[7](https://github.com/TemperWorks/Temper-Android/actions/runs/4785654859/jobs/8508626003#step:9:7)b[8](https://github.com/TemperWorks/Temper-Android/actions/runs/4785654859/jobs/8508626003#step:9:8)[9](https://github.com/TemperWorks/Temper-Android/actions/runs/4785654859/jobs/8508626003#step:9:9) --label 6c0442 --workdir /github/workspace --rm -e "GRADLE_OPTS" -e "BRANCH_NAME" -e "BROWSERSTACK_USER" -e "BROWSERSTACK_KEY" -e "JAVA_HOME" -e "JAVA_HOME_[11](https://github.com/TemperWorks/Temper-Android/actions/runs/4785654859/jobs/8508626003#step:9:11)_X64" -e "CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE" -e "GOOGLE_APPLICATION_CREDENTIALS" -e "GOOGLE_GHA_CREDS_PATH" -e "CLOUDSDK_CORE_PROJECT" -e "CLOUDSDK_PROJECT" -e "GCLOUD_PROJECT" -e "GCP_PROJECT" -e "GOOGLE_CLOUD_PROJECT" -e "INPUT_APPID" -e "INPUT_SERVICECREDENTIALSFILE" -e "INPUT_GROUPS" -e "INPUT_FILE" -e "INPUT_DEBUG" -e "INPUT_TOKEN" -e "INPUT_SERVICECREDENTIALSFILECONTENT" -e "INPUT_RELEASENOTES" -e "INPUT_RELEASENOTESFILE" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_ID_TOKEN_REQUEST_URL" -e "ACTIONS_ID_TOKEN_REQUEST_TOKEN" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/Temper-Android/Temper-Android":"/github/workspace" 6c0442:2d40bfad28424080b749e0e74f3de2a6
Error: Failed to authenticate, have you run firebase login?
DiegoFawr commented
Did you solve this somehow?