.github: restrict workflow permissions

As suggested by CodeQL scanning.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-07-10 16:24:34 +02:00
parent d30959e909
commit 6c133e85f2
4 changed files with 12 additions and 0 deletions
+3
View File
@@ -10,6 +10,9 @@ on:
pull_request:
types: [opened, synchronize, reopened, labeled]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
+3
View File
@@ -6,6 +6,9 @@ on:
- 'dev'
workflow_dispatch:
permissions:
contents: read
env:
PROJECT_NAME: finit
CONTACT_EMAIL: troglobit@gmail.com
+3
View File
@@ -5,6 +5,9 @@ on:
tags:
- '[0-9]+.[0-9]+*'
permissions:
contents: write
jobs:
release:
name: Build and upload release tarball
+3
View File
@@ -7,6 +7,9 @@ on:
- cron: '0 0 * * 0'
workflow_dispatch:
permissions:
contents: read
jobs:
schedule:
runs-on: ubuntu-latest