{"id":13479027,"url":"https://github.com/tale/kubectl-action","last_synced_at":"2025-07-08T16:36:43.500Z","repository":{"id":40630685,"uuid":"478775044","full_name":"tale/kubectl-action","owner":"tale","description":"GitHub Action to manage a K8s cluster using kubectl","archived":false,"fork":false,"pushed_at":"2025-01-21T23:33:35.000Z","size":1494,"stargazers_count":31,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T15:04:41.286Z","etag":null,"topics":["github-actions","kubectl","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tale.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}},"created_at":"2022-04-07T00:48:49.000Z","updated_at":"2025-06-30T01:12:43.000Z","dependencies_parsed_at":"2025-04-25T20:43:59.382Z","dependency_job_id":null,"html_url":"https://github.com/tale/kubectl-action","commit_stats":{"total_commits":58,"total_committers":2,"mean_commits":29.0,"dds":"0.10344827586206895","last_synced_commit":"9d3c93f13780e3dd9dbf346389f14cb72ca7573a"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/tale/kubectl-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fkubectl-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fkubectl-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fkubectl-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fkubectl-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tale","download_url":"https://codeload.github.com/tale/kubectl-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tale%2Fkubectl-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263029211,"owners_count":23402354,"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":["github-actions","kubectl","kubernetes"],"created_at":"2024-07-31T16:02:07.959Z","updated_at":"2025-07-08T16:36:43.446Z","avatar_url":"https://github.com/tale.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# kubectl-action\n\nGitHub Action to manage a K8s (Kubernetes) cluster using kubectl.\n\n## Usage\n\nTo use this action, add the following step to your GitHub Action workflow:\n\n```yaml\n- uses: tale/kubectl-action@v1\n  with:\n    base64-kube-config: ${{ secrets.KUBE_CONFIG }}\n```\n\nKeep in mind that the action expects a base64 encoded string of your Kubernetes configuration. The simplest way to do that is to run `cat $HOME/.kube/config | base64` and save that output as an action secret. It's additionally possible to generate a config file using the `aws` CLI for EKS or any other tools with other cloud providers.\n\nIt's also possible to specify the version of the [kubectl](https://kubernetes.io/docs/reference/kubectl/) CLI to use. The current default release used by this action is the latest version.\n\n```yaml\n- uses: tale/kubectl-action@v1\n  with:\n    base64-kube-config: ${{ secrets.KUBE_CONFIG }}\n    kubectl-version: v1.22.0\n```\n\nOnce you've completed this setup, you have direct access to the `kubectl` binary and command in the rest of your actions. Here's a full example to give you some inspiration:\n\n```yaml\nname: Kubectl Action\n\non:\n  workflow_dispatch:\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: tale/kubectl-action@v1\n      with:\n        base64-kube-config: ${{ secrets.KUBE_CONFIG }}\n    - run: kubectl get pods\n```\n\nHere's an example using AWS EKS:\n\n```yaml\nname: Kubectl Action\n\non:\n  workflow_dispatch:\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - name: Configure AWS Credentials\n      uses: aws-actions/configure-aws-credentials@v4\n      with:\n        role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role\n        aws-region: us-east-2\n    - name: Generate kubeconfig\n      run: |\n        {\n            echo 'EKS_CREDS\u003c\u003cEOF'\n            aws eks update-kubeconfig --region us-east-2 --name my-cluster --dry-run | base64\n            echo EOF\n        } \u003e\u003e $GITHUB_ENV\n    - uses: tale/kubectl-action@v1\n      with:\n        base64-kube-config: ${{ env.EKS_CREDS }}\n    - run: kubectl get pods\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftale%2Fkubectl-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftale%2Fkubectl-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftale%2Fkubectl-action/lists"}