{"id":13533886,"url":"https://github.com/actions-hub/gcloud","last_synced_at":"2026-04-02T12:51:49.663Z","repository":{"id":38206175,"uuid":"203584473","full_name":"actions-hub/gcloud","owner":"actions-hub","description":"GitHub Action for interacting with Google Cloud Platform (GCP)","archived":false,"fork":false,"pushed_at":"2026-01-14T02:06:15.000Z","size":143,"stargazers_count":242,"open_issues_count":2,"forks_count":27,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-16T22:08:16.139Z","etag":null,"topics":["action","gcloud","gcp","github-actions","gke","google-cloud-platform","gsutil"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/google-cloud-platform-gcp-cli-gcloud","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actions-hub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-08-21T12:57:08.000Z","updated_at":"2026-01-14T02:06:19.000Z","dependencies_parsed_at":"2026-01-16T12:01:21.082Z","dependency_job_id":null,"html_url":"https://github.com/actions-hub/gcloud","commit_stats":{"total_commits":328,"total_committers":11,"mean_commits":"29.818181818181817","dds":"0.060975609756097615","last_synced_commit":"e72761c7748784cc6135070f44482b361735d41b"},"previous_names":["exelban/gcloud"],"tags_count":308,"template":false,"template_full_name":null,"purl":"pkg:github/actions-hub/gcloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-hub%2Fgcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-hub%2Fgcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-hub%2Fgcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-hub%2Fgcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-hub","download_url":"https://codeload.github.com/actions-hub/gcloud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-hub%2Fgcloud/sbom","scorecard":{"id":163660,"data":{"date":"2025-08-11","repo":{"name":"github.com/actions-hub/gcloud","commit":"86ad733036d52e034231be865231e5567a1c6788"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yaml:1","Warn: no topLevel permission defined: .github/workflows/upgrader.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"12 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/actions-hub/gcloud/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/actions-hub/gcloud/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/actions-hub/gcloud/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/actions-hub/gcloud/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrader.yaml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/actions-hub/gcloud/upgrader.yaml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating google/cloud-sdk:533.0.0-alpine to google/cloud-sdk:533.0.0-alpine@sha256:42893ca6d6194aec56780d5192afffb40ef7167d3e6c52cc44e30271fceb3534","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T14:16:37.206Z","repository_id":38206175,"created_at":"2025-08-16T14:16:37.206Z","updated_at":"2025-08-16T14:16:37.206Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28653612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","gcloud","gcp","github-actions","gke","google-cloud-platform","gsutil"],"created_at":"2024-08-01T07:01:23.999Z","updated_at":"2026-01-22T04:01:04.655Z","avatar_url":"https://github.com/actions-hub.png","language":"Shell","funding_links":[],"categories":["Community Resources","Shell"],"sub_categories":["External Services"],"readme":"# gcloud\n\n[![Preview](https://serhiy.s3.eu-central-1.amazonaws.com/Github_repo/gcloud/logo_gcp_vertical_rgb.png?v=1)](https://cloud.google.com)\n\nGitHub Action which allows interacting with [Google Cloud Platform](https://cloud.google.com).\n\n## Usage\n\nTo use gcloud in your workflow use:\n\n```yaml\n- uses: actions-hub/gcloud@master\n  env:\n    PROJECT_ID: test\n    APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}\n  with:\n    args: info\n```\n\nYou can also use `gsutil` from Google Cloud SDK package.\n\n```yaml\n- uses: actions-hub/gcloud@master\n  env:\n    PROJECT_ID: test\n    APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}\n  with:\n    args: cp your-file.txt gs://your-bucket/\n    cli: gsutil\n```\n\nYou can also use `kubectl` from Google Cloud SDK package.\n\n```yaml\n- uses: actions-hub/gcloud@master\n  env:\n    PROJECT_ID: test\n    APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}\n  with:\n    args: create deployment hello-server --image=gcr.io/google-samples/hello-app:1.0\n    cli: kubectl\n```\n\n### Secrets\n\n`APPLICATION_CREDENTIALS` - To authorize in GCP you need to have a [service account key](https://console.cloud.google.com/apis/credentials/serviceaccountkey).\nThe recommended way to store the credentials in the secrets it previously encode file with base64. To encode a JSON file use: `base64 ~/\u003caccount_id\u003e.json`. Or you can put a JSON structure to the secret.\n\n`PROJECT_ID` - must be provided to activate a specific project.\n\n### Using access tokens\n\nAlternatively, you can set the environment variable `CLOUDSDK_AUTH_ACCESS_TOKEN` to a valid OAUTH token; this allows the step to be used with [Workload Identity Federation](https://cloud.google.com/blog/products/identity-security/enabling-keyless-authentication-from-github-actions).\n\n```yaml\n- id: google_cloud_auth\n  name: Authenticate to Google Cloud\n  uses: google-github-actions/auth@v1\n  with:\n    workload_identity_provider: 'projects/${{ secrets.gcp_project_number }}/locations/global/workloadIdentityPools/${{ secrets.workload_identity_pool }/providers/${{ secrets.workload_identity_provider }}'\n    service_account: '${{ secrets.workload_identity_service_account }}@${{ secrets.gcp_project_name }}.iam.gserviceaccount.com'\n    token_format: 'access_token'\n\n- uses: actions-hub/gcloud@master\n  env:\n    PROJECT_ID: ${{ secrets.gcp_project_name }}\n    CLOUDSDK_AUTH_ACCESS_TOKEN: '${{ steps.google_cloud_auth.outputs.access_token }}'\n  with:\n    args: info\n```\n\nTwo important notes:\n\n1. If `CLOUDSDK_AUTH_ACCESS_TOKEN` is set, it will override any other auth configuration\n2. The `gsutil` command does not support the `CLOUDSDK_AUTH_ACCESS_TOKEN` variable; use [gcloud storage](https://cloud.google.com/sdk/gcloud/reference/storage) to interact with GCS.\n\n### Inputs\n\n`args` - command to run.\n\n`cli` - (optional) command line tool you want to use. Defaults to `gcloud`, allowed values: `gcloud`, `gsutil`.\n\n### Version\nFor each new release of gcloud master branch is updated to the latest version. Also, the tag is creating with the same number as the gcloud version. If you want to always have the latest version of gcloud, use `@master` branch. \nBut if you need some specific version of gcloud just use a specific tag. For example `@271.0.0`.\n\n## Example\n### Latest version\n```yaml\nname: gcloud\non: [push]\n\njobs:\n  deploy:\n    name: Deploy\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v1\n      - uses: actions-hub/gcloud@master\n        env:\n          PROJECT_ID: ${{secrets.GCLOUD_PROJECT_ID}}\n          APPLICATION_CREDENTIALS: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}}\n        with:\n          args: app deploy app.yaml\n```\n\n### Multistep\n```yaml\nname: gcloud\non: [push]\n\njobs:\n  deploy:\n    name: Deploy\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v1\n\n      - name: \"deploy to project A\"  \n        uses: actions-hub/gcloud@master\n        env:\n          PROJECT_ID: ${{secrets.GCLOUD_PROJECT_ID_A}}\n          APPLICATION_CREDENTIALS: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}}\n        with:\n          args: app deploy app.yaml\n      \n      - name: \"deploy to project B\"  \n        uses: actions-hub/gcloud@master\n        env:\n          PROJECT_ID: ${{secrets.GCLOUD_PROJECT_ID_B}}\n        with:\n          args: app deploy app.yaml\n```\n\n### Specific version\n```yaml\nname: gcloud\non: [push]\n\njobs:\n  deploy:\n    name: Deploy\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v1\n      - uses: actions-hub/gcloud@271.0.0\n        env:\n          PROJECT_ID: ${{secrets.GCLOUD_PROJECT_ID}}\n          APPLICATION_CREDENTIALS: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}}\n        with:\n          args: app deploy app.yaml\n```\n\n## Licence\n\n[MIT License](https://github.com/actions-hub/gcloud/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-hub%2Fgcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-hub%2Fgcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-hub%2Fgcloud/lists"}