Skip to content

Merge from development to master#17

Merged
zambodev merged 11 commits into
masterfrom
development
Aug 28, 2025
Merged

Merge from development to master#17
zambodev merged 11 commits into
masterfrom
development

Conversation

@zambodev

Copy link
Copy Markdown
Owner

No description provided.

Comment on lines +13 to +41
name: Build on Ubuntu
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake build-essential

- name: Configure CMake
run: cmake -S . -B build

- name: Build
run: cmake --build build

# build-windows:
# name: Build on Windows
# runs-on: windows-latest

# steps:
# - name: Checkout repository
# uses: actions/checkout@v4

# - name: Configure CMake
# run: cmake -S . -B build

# - name: Build
# run: cmake --build build

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 10 months ago

To fix the problem, an explicit permissions key should be added to restrict the permissions of the GITHUB_TOKEN to the least privilege necessary for the workflow's operations. Since the current workflow only checks out code and builds it (does not require any write access), contents: read is sufficient. The best way to fix this is to add permissions: contents: read at the root of the workflow (recommended and most consistent with GitHub's examples), which will apply it to all jobs (current and future). This requires modifying the .github/workflows/cmake-build.yml file: insert the permissions: block after the name: key and before (or after) the on: key for clarity.


Suggested changeset 1
.github/workflows/cmake-build.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/cmake-build.yml b/.github/workflows/cmake-build.yml
--- a/.github/workflows/cmake-build.yml
+++ b/.github/workflows/cmake-build.yml
@@ -1,4 +1,6 @@
 name: CMake Build
+permissions:
+  contents: read
 
 on:
   push:
EOF
@@ -1,4 +1,6 @@
name: CMake Build
permissions:
contents: read

on:
push:
Copilot is powered by AI and may make mistakes. Always verify output.
@zambodev zambodev merged commit 053814a into master Aug 28, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants