ci: add least-privilege permissions to workflow files

Both unit-tests.yml and integration-tests.yml were missing top-level
permissions declarations, triggering code scanning alerts for
actions/missing-workflow-permissions. These workflows only check out
code and run tests, so `contents: read` is sufficient.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
John Kennedy
2026-03-31 08:43:43 +00:00
parent fb7395e466
commit 7edcac2b95
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -7,6 +7,9 @@ on:
- cron: "37 14 * * *" # Run at 7:37 AM Pacific Time (14:37 UTC) every day
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
permissions:
contents: read
# If another scheduled run starts while this workflow is still running,
# cancel the earlier run in favor of the next run.
concurrency:
+3
View File
@@ -8,6 +8,9 @@ on:
pull_request:
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
permissions:
contents: read
# If another push to the same PR or branch happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
concurrency: