From a95603459eb29d072a7fde3d7e0ed9fd85fe4685 Mon Sep 17 00:00:00 2001 From: Aris Konstantoulas Date: Fri, 24 Apr 2026 09:35:17 +0300 Subject: [PATCH] chore(vuln): scope workflow permissions to least privilege (SEC-167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔒 Scanned for secrets using gitleaks 8.30.1 --- .github/workflows/build-and-quality-checks.yml | 3 +++ .github/workflows/check-pr-title.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build-and-quality-checks.yml b/.github/workflows/build-and-quality-checks.yml index 6b4f891..1231939 100644 --- a/.github/workflows/build-and-quality-checks.yml +++ b/.github/workflows/build-and-quality-checks.yml @@ -5,6 +5,9 @@ on: branches: [ 'master', 'develop' ] types: [ 'opened', 'reopened', 'synchronize' ] +permissions: + contents: read + jobs: unit_test_and_build: runs-on: ubuntu-latest diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml index 78281fa..57595ad 100644 --- a/.github/workflows/check-pr-title.yml +++ b/.github/workflows/check-pr-title.yml @@ -4,6 +4,9 @@ on: branches: [ 'master', 'develop' ] types: [ 'opened', 'reopened', 'edited', 'synchronize' ] +permissions: + contents: read + jobs: check_pr_title: name: Check PR title