ci: add workflow-level permissions for least privilege
Add top-level `permissions: contents: read` to the tests workflow, addressing CodeQL alerts about missing GITHUB_TOKEN permissions. Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -2,6 +2,9 @@ name: Run Tests & Linting
|
|||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# ── Tests ──────────────────────────────────────────────────────────────
|
# ── Tests ──────────────────────────────────────────────────────────────
|
||||||
test:
|
test:
|
||||||
|
|||||||
Reference in New Issue
Block a user