Skip to content

fix: drop --accept-routes from tailscale args (v4 passes it by default) - #324

Merged
tobias0106 merged 1 commit into
mainfrom
fix/tailscale-v4-duplicate-accept-routes
Jul 28, 2026
Merged

fix: drop --accept-routes from tailscale args (v4 passes it by default)#324
tobias0106 merged 1 commit into
mainfrom
fix/tailscale-v4-duplicate-accept-routes

Conversation

@tobias0106

Copy link
Copy Markdown
Contributor

Problem

Validation of #311 (tailscale/github-action v3.3.0 → v4.1.3) via a fresh consumer run (service-audit-log run 30360531261) showed every tailscale up attempt failing:

invalid boolean flag accept-routes: flag provided multiple times

v4 hardcodes --accept-routes in the up command (src/main.ts L771) — an undocumented breaking change — so our args: "... --accept-routes" duplicates the flag. continue-on-error: sonar-non-blocking masks the failure, so affected runs go green while silently skipping the SonarQube scan (or fail hard where sonar-non-blocking is off).

Fix

Remove --accept-routes from args in both workflows; v4 applies it unconditionally, so effective behavior is unchanged. --login-server (Headscale) is still passed through args as before.

Validation

After merge, re-validate the same way: retrigger a consumer PR (e.g. close/reopen a Renovate PR in service-audit-log) and confirm the Tailscale step joins on attempt 1 and the "Upload results to SonarQube" step runs instead of skipping.

🤖 Generated with Claude Code

tailscale/github-action v4 hardcodes --accept-routes in tailscale up
(src/main.ts), so repeating it in args fails every attempt with
"invalid boolean flag accept-routes: flag provided multiple times".
continue-on-error masked this and Sonar steps were silently skipped.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tobias0106
tobias0106 requested a review from a team as a code owner July 28, 2026 13:00
@tobias0106
tobias0106 requested review from sudheer-monta and removed request for a team July 28, 2026 13:00
@tobias0106
tobias0106 merged commit 98193d5 into main Jul 28, 2026
1 check passed
@tobias0106
tobias0106 deleted the fix/tailscale-v4-duplicate-accept-routes branch July 28, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants