Add Twingate connection to deployment pipeline#74
Conversation
Code Review: Add Twingate connection to deployment pipelineOverview What is Good
Issue: Floating action version tag (medium severity) The step uses twingate/github-action@v1. A mutable floating tag means any future v1.x commit pushed by Twingate runs automatically in your pipeline without review. This is a well-known supply-chain attack vector for GitHub Actions. Recommendation: pin to a specific semver tag (e.g. twingate/github-action@v1.1.0) or preferably to the exact commit SHA of that release. Check the twingate/github-action releases page to identify the latest stable version. Minor Notes
Summary |
Summary
This change adds Twingate network access to the CI/CD deployment pipeline, enabling secure connectivity to private Kubernetes infrastructure during deployments.
Key Changes
Implementation Details
The Twingate action is inserted in the deployment job after kubelogin setup and before the actual Kubernetes deployment step. This ensures that the secure network tunnel is established before attempting to connect to the Kubernetes cluster. The service key is securely passed via GitHub secrets (
TWINGATE_SERVICE_KEY).https://claude.ai/code/session_01TTrjjtAR35Zy8kJS4xP64E