github/workflows: set top-level file permissions

The gh-workflow-approve and tests_windows actions didnt't specify
top-level permissions. This is an improvement towards having a better
OpenSSF Scorecard Report score.

Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
Ivan Valdes 2024-08-02 10:37:02 -07:00
parent b87f244ec2
commit 83aba89820
No known key found for this signature in database
GPG Key ID: 4037D37741ED0CC5
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
---
name: Approve GitHub Workflows
permissions: read-all
on:
pull_request_target:
types:

View File

@ -1,6 +1,7 @@
---
name: Tests
on: [push, pull_request]
permissions: read-all
jobs:
test-windows:
strategy: