fix(ci): Replace Mozilla sccache action with token-free alternative #985
No reviewers
Labels
No labels
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status/Blocked
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
To-Merge
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!985
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tom/sccache-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace mozilla-actions/sccache-action with a custom Forgejo-specific implementation that eliminates GitHub token dependencies.
The new action (https://git.tomfos.tr/tom/sccache-action) mirrors sccache binaries to the Forgejo package registry and queries that instead of GitHub releases, removing rate limiting issues for all contributors regardless of repository permissions.
I'll update the name and description of this PR in a bit, but in short, I've forked the sccache-action and updated it to be specifically designed for Forgejo.
In long, it uses a Forgejo workflow to mirror the sccache binaries to the package registry, then the action queries the registry to find the latest package - other than that, it should work identically to the original, including using the hostedtoolcache as you can see in the example run I've just done:
Cloning the action to use your own copy is easy (just update the default repo/owner in action.yml) but I'm happy to take the minimal traffic this will cause and I don't have any ratelimiting that'll cause it to fail 😉
fix(ci): Use runner GH_PUBLIC_RO token for sccacheto fix(ci): Replace Mozilla sccache action with token-free alternative9a0dfb74dc1a3107c20a