Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

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

oracola9105ac6a911c4b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a21cbdfd6..79ba4a2cf 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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