set token permissions

see https://github.com/inventree/InvenTree/security/code-scanning/48
This commit is contained in:
Matthias Mair 2024-03-21 21:32:36 +01:00
parent 1261d7d7cf
commit 6deb33000f
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
5 changed files with 14 additions and 0 deletions

View File

@ -9,6 +9,9 @@ on:
pull_request_target: pull_request_target:
types: [ "labeled", "closed" ] types: [ "labeled", "closed" ]
permissions:
contents: read
jobs: jobs:
backport: backport:
name: Backport PR name: Backport PR

View File

@ -11,6 +11,9 @@ on:
env: env:
python_version: 3.9 python_version: 3.9
permissions:
contents: read
jobs: jobs:
check: check:

View File

@ -22,6 +22,8 @@ env:
INVENTREE_BACKUP_DIR: ../test_inventree_backup INVENTREE_BACKUP_DIR: ../test_inventree_backup
INVENTREE_SITE_URL: http://localhost:8000 INVENTREE_SITE_URL: http://localhost:8000
permissions:
contents: read
jobs: jobs:
paths-filter: paths-filter:
name: Filter name: Filter

View File

@ -5,6 +5,9 @@ on:
release: release:
types: [ published ] types: [ published ]
permissions:
contents: read
jobs: jobs:
stable: stable:

View File

@ -9,6 +9,9 @@ env:
python_version: 3.9 python_version: 3.9
node_version: 16 node_version: 16
permissions:
contents: read
jobs: jobs:
build: build: