Add explicit permissions for workflow security

Set minimal read-only permissions for GITHUB_TOKEN to follow
security best practices and fix CodeQL alert.

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-24 22:31:16 +00:00
parent 8415af36e4
commit c9de59a9e3

View File

@@ -15,10 +15,15 @@ on:
- '.github/workflows/cpp-build.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
check-implementation:
name: Check C++ Implementation Status
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
has_sources: ${{ steps.check.outputs.has_sources }}
steps: