Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ name: Install and verify
on:
pull_request:

# Least-privilege token permissions.
# actions/checkout recommends contents: read for standard usage.
permissions:
contents: read

jobs:
install_and_verify:
runs-on: macos-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/security-considerations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
types: [opened, edited, reopened]
branches: [main, master, develop]

# Least-privilege token permissions:
# - read PR metadata/body to validate the template section
# - read repo contents is harmless and keeps defaults consistent across workflows
permissions:
contents: read
pull-requests: read

jobs:
security-considerations:
runs-on: ubuntu-latest
Expand Down