{"id":19581178,"url":"https://github.com/google-github-actions/setup-cloud-sdk","last_synced_at":"2025-04-27T09:32:58.876Z","repository":{"id":37473292,"uuid":"373565204","full_name":"google-github-actions/setup-cloud-sdk","owner":"google-github-actions","description":"An NPM package for installing and configuring the Google Cloud SDK in GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-04-17T02:02:28.000Z","size":3677,"stargazers_count":10,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-17T15:51:52.207Z","etag":null,"topics":["actions","gcloud","gcp","github-actions","google-cloud","google-cloud-platform","npm"],"latest_commit_sha":null,"homepage":"https://cloud.google.com/sdk/docs","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google-github-actions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-06-03T15:59:44.000Z","updated_at":"2025-04-17T02:02:30.000Z","dependencies_parsed_at":"2024-01-22T05:32:45.252Z","dependency_job_id":"919e7cac-559b-4abe-a54a-660c4455635c","html_url":"https://github.com/google-github-actions/setup-cloud-sdk","commit_stats":{"total_commits":91,"total_committers":7,"mean_commits":13.0,"dds":0.6153846153846154,"last_synced_commit":"5d826544322e1fe46a85e2318b80585ae81ceac4"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-github-actions%2Fsetup-cloud-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-github-actions%2Fsetup-cloud-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-github-actions%2Fsetup-cloud-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-github-actions%2Fsetup-cloud-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-github-actions","download_url":"https://codeload.github.com/google-github-actions/setup-cloud-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251118877,"owners_count":21539190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["actions","gcloud","gcp","github-actions","google-cloud","google-cloud-platform","npm"],"created_at":"2024-11-11T07:33:47.263Z","updated_at":"2025-04-27T09:32:58.297Z","avatar_url":"https://github.com/google-github-actions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Google GitHub actions: Setup Cloud SDK Client](https://github.com/google-github-actions)\n\nSetup Cloud SDK for GitHub Actions API client for Node.js\n\nA comprehensive list of changes in each version may be found in\n[the CHANGELOG](https://github.com/google-github-actions/setup-cloud-sdk/blob/main/CHANGELOG.md).\n\n* [Client API Reference](./docs/modules.md)\n\n**Table of contents:**\n\n* [Installing the client library](#installing-the-client-library)\n* [Using the client library](#using-the-client-library)\n* [Versioning](#versioning)\n* [Contributing](#contributing)\n* [License](#license)\n\n**This is not an officially supported Google product, and it is not covered by a\nGoogle Cloud support contract. To report bugs or request features in a Google\nCloud product, please contact [Google Cloud\nsupport](https://cloud.google.com/support).**\n\n\n### Installing the client library\n\n```bash\nnpm install @google-github-actions/setup-cloud-sdk\n```\n\n### Using the client library\n\n```TS\nimport * as core from '@actions/core';\nimport * as toolCache from '@actions/tool-cache';\nimport * as setupGcloud from '@google-github-actions/setup-cloud-sdk';\n\n// Install gcloud if not already installed.\nconst gcloudVersion = await setupGcloud.getLatestGcloudSDKVersion();\n\nif (!setupGcloud.isInstalled(gcloudVersion)) {\n  await setupGcloud.installGcloudSDK(gcloudVersion);\n} else {\n  const toolPath = toolCache.find('gcloud', gcloudVersion);\n  core.addPath(path.join(toolPath, 'bin'));\n}\n\n// Authenticate gcloud SDK.\nif (credentials) await setupGcloud.authenticateGcloudSDK(credentials);\n\nconst authenticated = await setupGcloud.isAuthenticated();\nif (!authenticated) {\n  throw new Error('Error authenticating the Cloud SDK.');\n}\n\nconst toolCommand = setupGcloud.getToolCommand();\n```\n\n## Versioning\n\nThis library follows [Semantic Versioning](http://semver.org/).\n\n## Contributing\n\nContributions welcome! See the [Contributing Guide](./CONTRIBUTING.md).\n\n## License\n\nApache Version 2.0\n\nSee [LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-github-actions%2Fsetup-cloud-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-github-actions%2Fsetup-cloud-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-github-actions%2Fsetup-cloud-sdk/lists"}