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:
types: [ "labeled", "closed" ]
permissions:
contents: read
jobs:
backport:
name: Backport PR

View File

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

View File

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

View File

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

View File

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