Skip to content

Commit

Permalink
Restricted permissions for GitHub tokens.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixxm authored Aug 4, 2022
1 parent 7e5c8fc commit 5f76002
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
docs:
# OS must be the same as on djangoproject.com.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
flake8:
name: flake8
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/new_contributor_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request_target:
types: [opened]

permissions:
issues: write
pull-requests: read

jobs:
build:
name: Hello new contributor
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/schedule_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
windows:
runs-on: windows-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/schedules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: '42 2 * * *'
workflow_dispatch:

permissions:
actions: write
contents: read

jobs:
trigger-runs:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
windows:
runs-on: windows-latest
Expand Down

0 comments on commit 5f76002

Please sign in to comment.