ci/cd: add explicit permissions to actions

This commit is contained in:
Elias Schneider
2025-05-07 16:48:18 +02:00
parent e0db4695ac
commit 90bdd29fb6
2 changed files with 14 additions and 2 deletions

View File

@@ -11,13 +11,16 @@ on:
jobs:
test-backend:
permissions:
contents: read
actions: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'backend/go.mod'
cache-dependency-path: 'backend/go.sum'
go-version-file: "backend/go.mod"
cache-dependency-path: "backend/go.sum"
- name: Install dependencies
working-directory: backend
run: |