Skip to content

Laravel Cloud deploys can now use a read-only GitHub token

A new per-deployment token can read your repository but cannot push to it, shrinking what a compromised build pipeline can actually do.

Source: Laravel

Laravel Cloud can now deploy from GitHub using a read-only token instead of one with push access, Laravel said on 23 November. Turn on the new “Read-only repository access” setting, in an environment’s General Settings under Git, and every deployment gets its own token: it can read the repository being deployed and other repositories in the same GitHub account or organisation, but it cannot push commits or reach anything owned by anyone else. Laravel Cloud revokes the token the moment the deployment finishes.

The setting is on by default for new environments. Existing environments keep whatever access they already had, so you have to switch it on yourself. If GitHub cannot issue a read-only token for some reason, the deployment fails with a clear error instead of quietly falling back to a full-access one.

Environment → General Settings → Git → Read-only repository access

Why it matters: a leaked or hijacked deploy token has been the first step in a long run of supply-chain incidents this year, from stolen CI secrets to compromised GitHub Actions. A read-only, per-deployment, auto-revoked token means a compromised build pipeline cannot be turned into a way to push malicious commits, without you having to build that scoping yourself.

Share

Related reading

More from The Wire

All briefs