Skip to content

Commit

Permalink
github/workflows: set top-level file permissions
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ivanvc committed Aug 2, 2024
1 parent b87f244 commit 83aba89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gh-workflow-approve.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Approve GitHub Workflows

permissions: read-all
on:
pull_request_target:
types:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests_windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: Tests
on: [push, pull_request]
permissions: read-all
jobs:
test-windows:
strategy:
Expand Down

0 comments on commit 83aba89

Please sign in to comment.