You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add support for running the action inside container (#71)
* Add Linux Docker test job to workflows
Add a test-linux-docker job to both .github/workflows/ci.yaml and .github/workflows/integration-tests.yaml. The job runs in an ubuntu:24.04 container (--privileged) with a 10-minute timeout, verifies Twingate status and attempts to access a secure resource via curl. In CI it invokes the local action (./) with the SERVICE_KEY secret; in integration-tests it exercises the published action twingate/github-action@main (passing service-key and debug) to validate behavior in a Docker environment.
* fix: use GITHUB_ACTION_PATH env var for container compatibility
Use runtime environment variable instead of parse-time context expression
to resolve action path correctly inside Docker containers.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: support running in minimal Docker containers
- Add SUDO variable to linux-helpers.sh that's empty when root
- Replace hardcoded sudo with $SUDO in all Linux steps
- Auto-install curl and gnupg if missing in container environments
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: temporarily use branch for integration tests
TODO: revert to @main after merging PR #71
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* revert: use @main for integration tests
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: address PR review feedback
- Add "Print client logs" step to test-linux-docker jobs for debugging
- Add SUDO logic to prerequisites step for non-root environments
- Fix spacing in echo message
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: use /var/log/twingated.log in container environments
When journalctl isn't available, Twingate logs to this file instead.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix error message
* refactor sudo logic to be shared
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Eran Kampf <205185+ekampf@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Eran Kampf <eran@ekampf.com>
0 commit comments