.github: exclude forks from privileged job runs

Exclude forks from executing "privileged" GHA jobs on our self-hosted
runners.

Updates tailscale/corp#43401

Signed-off-by: Patrick O'Doherty <[email protected]>
This commit is contained in:
Patrick O'Doherty
2026-06-12 15:16:13 -07:00
parent 7d18a06292
commit ee3cfa387c
+3
View File
@@ -344,6 +344,9 @@ jobs:
privileged:
needs: gomod-cache
runs-on: ubuntu-24.04
# This job runs fork-PR code inside a --privileged container, so restrict it
# to runs on the tailscale/tailscale repo and never on 3p PRs.
if: github.repository == 'tailscale/tailscale'
container:
image: golang:latest
options: --privileged