| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Set an explicit least-privilege permissions block so the workflow GITHUB_TOKEN is scoped to contents: read instead of inheriting the repository default. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
|
lgtm, no downsides? |
Sorry, something went wrong.
|
Right, no downsides. The workflow only checks out the repo and runs the build, so its GITHUB_TOKEN never needs more than read. Declaring contents: read at the top just makes that explicit instead of letting the job inherit whatever the repository default grants (often read/write). If a future job in this file ever needs a write scope, it can be added at the job level without widening the rest. |
Sorry, something went wrong.
|
@lxsmnsyc approved in June and nothing is failing. Is this just waiting on a merge? |
Sorry, something went wrong.
|
@arpitjain099 sorry I lost repo perms sometime between June and August (possibly by mistake), we'll resolve this. Thanks for the reminder! |
Sorry, something went wrong.
|
@lxsmnsyc please review when you have time |
Sorry, something went wrong.
|
@arpitjain099 This is already approved on my end, however like I mentioned I don't have repo perms anymore. I've also notified @ryansolid but he probably missed it couple of times. Let's wait again. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Small hardening change: set permissions: contents: read at the top of .github/workflows/ci.yml so the workflow token is read-only instead of inheriting the repository default. The job only does checkout and build/test, so nothing else is required.