[gh-actions] Add permissions to workflows as suggested by Github

This commit is contained in:
ejurgensen
2025-11-12 22:55:44 +01:00
parent 520b9c6a2a
commit 293f3bcc54
8 changed files with 16 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
name: Build htdocs name: Build htdocs
permissions:
contents: write
on: on:
push: push:

View File

@@ -1,4 +1,6 @@
name: "CodeQL" name: "CodeQL"
permissions:
contents: read
on: on:
push: push:

View File

@@ -1,4 +1,6 @@
name: FreeBSD name: FreeBSD
permissions:
contents: read
on: on:
push: push:

View File

@@ -1,4 +1,6 @@
name: build and deploy mkdocs to github pages name: build and deploy mkdocs to github pages
permissions:
contents: write
on: on:
push: push:
branches: branches:

View File

@@ -1,4 +1,6 @@
name: macOS name: macOS
permissions:
contents: read
on: on:
push: push:

View File

@@ -1,4 +1,6 @@
name: macOS 12 name: macOS 12
permissions:
contents: read
on: on:
workflow_dispatch: workflow_dispatch:

View File

@@ -1,4 +1,6 @@
name: Ubuntu name: Ubuntu
permissions:
contents: read
on: on:
push: push:

View File

@@ -1,4 +1,6 @@
name: Web UI Lint name: Web UI Lint
permissions:
contents: read
on: on:
push: push: