I setup our github CI to use sscache with a GCS bucket. For trusted PRs, I use READ_WRITE mode, and for untrusted I use READ_ONLY. Other than this setting, the tests are exactly the same.
What I found is that when the setting is READ_ONLY, I get the following error:
sccache: error: Server startup failed: cache storage failed to read: Unexpected (permanent) at read => Invalid Credentials
Simply changing it to unconditionally use READ_WRITE fixes the problem, but it leaves our cache open to pollution.
I setup our github CI to use sscache with a GCS bucket. For trusted PRs, I use READ_WRITE mode, and for untrusted I use READ_ONLY. Other than this setting, the tests are exactly the same.
What I found is that when the setting is READ_ONLY, I get the following error:
Simply changing it to unconditionally use READ_WRITE fixes the problem, but it leaves our cache open to pollution.