Samuel Arendt

Laravel Cloud now deploys with a read-only GitHub token, but existing environments stay as they were

On November 23, 2026, Laravel Cloud added the Read-only repository access setting to its changelog. With it enabled, each deployment of an environment connected to GitHub gets its own token that can only read code, and Cloud revokes that token as soon as the deployment finishes. The setting is on by default for new environments. Environments created before that date keep the setting they had, which means they keep cloning with the broad-access token until someone flips the switch.

What the new token can reach

According to the documentation, the read-only token cannot push and cannot read repositories owned by other GitHub accounts. It reads the repository being deployed and also the other repositories in the same account or organization. A compromised build command can therefore still read private code from other projects in the organization, but it can no longer write to those repositories.

Failure behavior changes as well. If GitHub cannot issue the read-only token, for example because the Laravel Cloud app installation is suspended or waiting for approval, the deployment fails. Cloud does not fall back to the broad-access token.

Who needs to look at this

The change affects teams that deploy applications to Laravel Cloud from GitHub, whether Laravel, Symfony or another stack Cloud supports. The teams that most need to act are those with production environments created before November 23, because those environments do not get the protection automatically.

Two kinds of build break with the setting on:

  • a build that writes to a repository, for example to create a tag or a version commit;
  • a build that reads a repository owned by another GitHub account, such as a private Composer package hosted in an agency's or a vendor's organization.

For these cases, the documentation says to store a fine-grained personal access token as a Cloud secret and use it in the build commands, or to leave the setting off.

What to do with existing environments

There is no deadline, and nothing stops working if nobody changes anything. Even so, the better path is to enable the setting under General Settings, in the Git section, starting with a staging environment and then production. Before turning it on, read the build commands and composer.json for any repository that does not belong to the same GitHub account. The reasoning is the same as limiting the blast radius when supervision fails: a credential that cannot write cannot be used to change code, even if a malicious dependency runs during the build.

What the changelog does not say

Laravel Cloud has not said whether it plans to enable the setting on existing environments at some point. It is also unclear how the setting interacts with the GitHub app permission change announced on November 16, which asks the account owner to approve the Repository creation permission. The changelog for that date says nothing breaks while the approval is pending, and the current environments documentation says the deployment fails when the installation is waiting for approval. Anyone who has not approved the request yet should do so before enabling the setting in production.

If your company is weighing something similar or needs support on this topic, reach me on LinkedIn or WhatsApp.

References

Closed arched metal door in a white concrete wall, with rows of rivets and two simple latches

Photo by Juan Martin Lopez on Unsplash

#Operations, #Radar