Set read permissions for workflows in tests and publish

Added `contents: read` and `pull-requests: read` permissions to the `tests` and `publish` GitHub workflows. This enhances security by explicitly defining the required permissions for these jobs.
This commit is contained in:
2025-01-09 18:11:31 -05:00
parent 7db4ec2180
commit 36dc86ff8c
2 changed files with 6 additions and 0 deletions

View File

@@ -6,6 +6,9 @@ on:
jobs:
publish:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

View File

@@ -9,6 +9,9 @@ on:
jobs:
tests:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4