workflow: Add top-level permissions

Set:
```
permissions:
  contents: read
```
as the default top-level permissions explicitly
to conform to recommended security practices e.g.
https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
This commit is contained in:
stevenhorsman
2025-05-28 15:05:52 +01:00
parent 353d0822fd
commit 088e97075c
53 changed files with 161 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
on: ["pull_request"]
name: Unit tests
permissions:
contents: read
jobs:
test:
strategy: