From 6f1d9c7c2f1871d183334ae210774420b0c26a5c Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Wed, 8 Jul 2026 13:36:43 +0200 Subject: [PATCH 1/2] CI: add least-privilege permissions to GitHub Actions workflows Add explicit workflow-level permissions blocks to resolve CodeQL actions/missing-workflow-permissions alerts. Scopes are derived from workflow operations (git push, artifact upload, Danger, release lanes). Refs: APPSEC-164 --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d835b1d..80d0a16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,10 @@ env: # If set, uv will run without updating the uv.lock file. Equivalent to the `uv run --frozen`. UV_FROZEN: "1" +permissions: + contents: read + pull-requests: read + jobs: lint: name: Lint (ruff + mypy + validate pyproject.toml) From f5ebd705400c51055935fc787de39cf808081e33 Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Tue, 14 Jul 2026 13:54:33 +0200 Subject: [PATCH 2/2] fix(ci): align workflow token permissions with actual operations --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80d0a16..164c13f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,6 @@ env: permissions: contents: read - pull-requests: read jobs: lint: