From 10c668053ddf1d817b82eb6519dcab2036417620 Mon Sep 17 00:00:00 2001 From: DefaultRyan <26174284+DefaultRyan@users.noreply.github.com> Date: Thu, 3 Dec 2026 02:23:34 +0000 Subject: [PATCH] Declare least-privilege workflow token permissions Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- .github/workflows/check-line-endings.yml | 3 +++ .github/workflows/ci.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/check-line-endings.yml b/.github/workflows/check-line-endings.yml index 3891aec09..4a9a56310 100644 --- a/.github/workflows/check-line-endings.yml +++ b/.github/workflows/check-line-endings.yml @@ -6,6 +6,9 @@ on: branches: - master +permissions: + contents: read + jobs: check-line-endings: name: Enforce .gitattributes line endings diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66571392b..ae3c927f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: branches: - master +permissions: + contents: read + jobs: test-msvc-cppwinrt-build: name: '${{ matrix.compiler }}: Build (${{ matrix.arch }}, ${{ matrix.config }}, ${{ matrix.toolchain.platform_toolset }})'