Comments (4)
What I do is
- make service account
- gen service account key
- set the github secret SA_EMAIL, GOOGLE_APPLICATION_CREDENTIALS, GCE_PROJECT
from setup-gcloud.
Hi @MaximSungmo
As the issue template instructs, please share your complete action.yml
file.
from setup-gcloud.
@sethvargo
I did not base64 encode the .json file.
used GOOGLE_APPLICATION_CREDENTIALS raw data of private_key as value..
So, it is solved!
from setup-gcloud.
Hello everyone!
It doesn't work for me. I have the same error:
WARNING: .p12 service account keys are not recomended unless it is necessary for backwards compatability. Please switch to a newer .json service account key for this account.
ERROR: (gcloud.auth.activate-service-account) PyOpenSSL is not available. If you have already installed PyOpenSSL, you will need to enable site packages by setting the environment variable CLOUDSDK_PYTHON_SITEPACKAGES to 1. If that does not work, see https://developers.google.com/cloud/sdk/crypto for details or consider using .json private key instead.
##[error]The process '/opt/hostedtoolcache/gcloud/270.0.0/x64/bin/gcloud' failed with exit code 1
My workflow is:
jobs:
setup-build-publish:
if: github.event.pull_request.merged == true
name: name
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
# Setup gcloud CLI
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '270.0.0'
service_account_email: ${{ secrets.GCP_EMAIL }}
service_account_key: ${{ secrets.GCP_KEY }}
I created a service account with its JSON key.
I created the secrets in github repository.
In GCP_EMAIL I have the "client_email" field of the JSON key file.
In GCP_KEY I have the "private_key" field of the JSON key file.
For example, the private_key is like:
"-----BEGIN PRIVATE KEY-----\nMYPRIVATEKEY\n-----END PRIVATE KEY-----"
Does anyone have a solution for me?
Thanks
from setup-gcloud.
Related Issues (20)
- bq component fails when using Workload Identity Federation through /auth HOT 2
- Deploy a Cloud Run instance with add-cloudsql-instances HOT 2
- Speed of setup is suboptimal HOT 3
- Get PERMISSION_DENIED from updating API Gateway config HOT 1
- Node js binary install vs install script HOT 2
- Google actions
- setup-gcloud failing on windows 2019 github runners HOT 4
- gsutil fails when using Workload Identity Federation through /autH HOT 1
- How to enable BuildKit? HOT 1
- windows-2019 runner -> setup-gcloud reports old version of Python installed even when running previously the setup-python step HOT 2
- Authentication can take up to 20mn on self-hosted runners in k8s (GCP) - ReOpen HOT 2
- termcolor is not defined when running `bq` HOT 3
- issue: termcolor error when using bq from github actions HOT 2
- skip_install: true throws warning when using v2 HOT 2
- Spurious warning auth is unavailabe, but gcloud works HOT 3
- Can't find 'action.yml', 'action.yaml' or 'Dockerfile' for action 'GoogleCloudPlatform/github-actions/setup-gcloud@main'. HOT 1
- Request timeout when downloading gcloud sdk HOT 6
- gcloud functions deploy fails Container Healthcheck HOT 6
- Setup gcloud shuts a self-hosted actions/actions-runner HOT 6
- documentation misleading for Application Default Credentials HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-gcloud.