Skip to content

Commit

Permalink
Reduce permissions of GitHub Actions to minimum for security
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Jan 11, 2025
1 parent d21a85b commit f51e17a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:

# Drop permissions to minimum for security
permissions:
contents: read

jobs:
build:
strategy:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sphinx-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:

# Drop permissions to minimum for security
permissions:
contents: read

jobs:
docs:
runs-on: ubuntu-24.04
Expand Down

0 comments on commit f51e17a

Please sign in to comment.