From 2c42940b2c9ca59acd473dbcc11a2ecb0378cae9 Mon Sep 17 00:00:00 2001 From: Oliver-Marcus Eder Date: Sat, 29 Aug 2026 18:56:22 +0200 Subject: [PATCH] ci: add least-privilege permissions to CI workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves the CodeQL actions/missing-workflow-permissions alert. CI only checks out, builds, and tests, so contents:read is sufficient — no job loses a needed permission. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a86e88d..c264c98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,10 @@ name: CI on: [push, pull_request] +# Least-privilege: CI only checks out, builds, and tests — read is enough. +permissions: + contents: read + jobs: build-and-test: runs-on: ubuntu-latest