Restricted permissions for GitHub tokens.

This commit is contained in:
Mariusz Felisiak 2022-08-04 20:00:35 +02:00 committed by GitHub
parent 7e5c8fc51f
commit 5f76002500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 0 deletions

View File

@ -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.

View File

@ -14,6 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
flake8:
name: flake8

View File

@ -4,6 +4,10 @@ on:
pull_request_target:
types: [opened]
permissions:
issues: write
pull-requests: read
jobs:
build:
name: Hello new contributor

View File

@ -7,6 +7,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
windows:
runs-on: windows-latest

View File

@ -5,6 +5,10 @@ on:
- cron: '42 2 * * *'
workflow_dispatch:
permissions:
actions: write
contents: read
jobs:
trigger-runs:
runs-on: ubuntu-latest

View File

@ -14,6 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
windows:
runs-on: windows-latest