mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-24 10:08:00 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user