mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
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:
5
.github/workflows/cpp-build.yml
vendored
5
.github/workflows/cpp-build.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user