ci: read-only token for the CI workflow (#4026)

ci.yml had no permissions block, so its token got the repository
default. Its jobs only check out code, restore caches and upload
artifacts, so contents: read is enough.

The permissions half of item 6 in #1114.
This commit is contained in:
oracola91
2026-10-23 10:19:22 -04:00
committed by GitHub
parent cfda92233d
commit 05ac6a911c
+4
View File
@@ -8,6 +8,10 @@ on:
schedule:
- cron: "17 3 * * *" # nightly fuzzing
# The token is only used to check out the code: no job writes to the repository.
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1