From edd93af8ac7d8ecdd1d0799da64fe5776e2ac1e5 Mon Sep 17 00:00:00 2001 From: Radoslav Dimitrov Date: Thu, 18 Sep 2025 18:22:18 +0300 Subject: [PATCH] Set workflow permissions to resolve CodeQL warnings (#474) ## Motivation and Context The following resolves warnings raised by CodeQL by setting the appropriate permissions for each workflow. ## How Has This Been Tested? ## Breaking Changes ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist - [ ] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [ ] My code follows the repository's style guidelines - [ ] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed ## Additional context --------- Signed-off-by: Radoslav Dimitrov --- .github/workflows/ci.yml | 3 +++ .github/workflows/deploy.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e062e3..cfd2d68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ main ] +permissions: + contents: read + jobs: # Build, Lint, and Validate build-lint-validate: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 37ebb5d..ece269e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,9 @@ on: branches: - main +permissions: + contents: read + env: PULUMI_VERSION: "3.188.0"