CI: Minimize workflow permissions

This commit is contained in:
Davide Pesavento 2025-12-24 23:56:04 -05:00 committed by Connor McLaughlin
parent 9aaaf14e85
commit 182075675d
8 changed files with 26 additions and 2 deletions

View File

@ -16,6 +16,9 @@ on:
- 'data/resources/discdb.yaml'
workflow_dispatch:
permissions:
contents: read
jobs:
gamedb-lint:
runs-on: ubuntu-slim

View File

@ -4,6 +4,9 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
linux-appimage-build:
name: "${{ matrix.name }}"

View File

@ -4,6 +4,9 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: "${{ matrix.arch }}"

View File

@ -4,6 +4,9 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
macos-build:
name: "Universal"

View File

@ -6,8 +6,8 @@ on:
paths-ignore:
- '**.md'
- 'appveyor.yml'
- 'extras/yamllint-config.yaml'
- 'scripts/*'
- '.github/ISSUE_TEMPLATE/*'
push:
branches:
- master
@ -15,8 +15,11 @@ on:
paths-ignore:
- '**.md'
- 'appveyor.yml'
- 'extras/yamllint-config.yaml'
- 'scripts/*'
- '.github/ISSUE_TEMPLATE/*'
permissions:
contents: write
jobs:
windows:

View File

@ -12,6 +12,9 @@ on:
- 'src/duckstation-qt/translations/*.ts'
workflow_dispatch:
permissions:
contents: read
jobs:
translation-lint:
runs-on: ubuntu-slim

View File

@ -3,6 +3,9 @@ name: Upload Caches
on:
workflow_dispatch:
permissions:
contents: read
jobs:
upload-windows-cache:
runs-on: windows-2022

View File

@ -4,6 +4,9 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
windows-build:
name: "${{ matrix.name }}"