Skip to content

A fast, helpful, and open-source document parser

ci: declare least-privilege permissions on all workflows

Logan Markewichb75603d44027
diff --git a/.github/workflows/ci-node.yml b/.github/workflows/ci-node.yml
index 2b45b26..493c09c 100644
--- a/.github/workflows/ci-node.yml
+++ b/.github/workflows/ci-node.yml
@@ -14,6 +14,9 @@ on:
- "packages/node/**"
- ".github/workflows/ci-node.yml"
+permissions:
+ contents: read
+
env:
CARGO_TERM_COLOR: always
diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml
index 5c21bd6..bb2c026 100644
--- a/.github/workflows/ci-python.yml
+++ b/.github/workflows/ci-python.yml
@@ -14,6 +14,9 @@ on:
- "packages/python/**"
- ".github/workflows/ci-python.yml"
+permissions:
+ contents: read
+
env:
CARGO_TERM_COLOR: always
diff --git a/.github/workflows/ci-wasm.yml b/.github/workflows/ci-wasm.yml
index c276773..80ca125 100644
--- a/.github/workflows/ci-wasm.yml
+++ b/.github/workflows/ci-wasm.yml
@@ -18,6 +18,9 @@ on:
- 'scripts/edge-compat/**'
- '.github/workflows/ci-wasm.yml'
+permissions:
+ contents: read
+
env:
CARGO_TERM_COLOR: always
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 45e2457..f625a3e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,6 +6,9 @@ on:
pull_request:
branches: [main]
+permissions:
+ contents: read
+
env:
CARGO_TERM_COLOR: always
SKIP_INTEGRATION_TESTS: yes
diff --git a/.github/workflows/ocr_servers.yml b/.github/workflows/ocr_servers.yml
index ff29d1b..75ed162 100644
--- a/.github/workflows/ocr_servers.yml
+++ b/.github/workflows/ocr_servers.yml
@@ -3,6 +3,9 @@ name: Validate OCR Servers
on:
pull_request:
+permissions:
+ contents: read
+
jobs:
testing_paddleocr:
runs-on: ubuntu-latest
diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml
index 69444cd..6d30db7 100644
--- a/.github/workflows/release-docker.yml
+++ b/.github/workflows/release-docker.yml
@@ -12,6 +12,10 @@ on:
type: boolean
default: false
+# Default floor; jobs that publish widen this themselves.
+permissions:
+ contents: read
+
env:
REGISTRY: ghcr.io
IMAGE_NAME_BASE: run-llama/liteparse-base
diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml
index 9a43b48..2ce113b 100644
--- a/.github/workflows/sync-docs.yml
+++ b/.github/workflows/sync-docs.yml
@@ -5,6 +5,11 @@ on:
paths:
- "docs/**"
workflow_dispatch:
+
+# The push to the docs repo uses DEVELOPER_HUB_TOKEN, not GITHUB_TOKEN.
+permissions:
+ contents: read
+
jobs:
sync-docs:
runs-on: ubuntu-latest