From fdc61b3bae7330bbd6c781d9025c4c501cd4c8fb Mon Sep 17 00:00:00 2001 From: vamera Date: Wed, 14 May 2025 09:49:34 +0200 Subject: [PATCH 1/3] Added permissions to the GitHub Workflow compile.yml --- .github/workflows/compile.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 62cfd0acb8..e82e93789b 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -2,6 +2,9 @@ name: CI +permissions: + contents: read + # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: From 4e30c9076b3950a5c22a680f22cdc3ec7b264f78 Mon Sep 17 00:00:00 2001 From: vamera Date: Wed, 14 May 2025 09:51:16 +0200 Subject: [PATCH 2/3] Updated the main menu and removed the link to edit on GitHub --- source/_themes/wazuh_doc_theme_v3/template-parts/header.html | 2 +- source/conf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_themes/wazuh_doc_theme_v3/template-parts/header.html b/source/_themes/wazuh_doc_theme_v3/template-parts/header.html index 479b07d78a..d48c348b9e 100644 --- a/source/_themes/wazuh_doc_theme_v3/template-parts/header.html +++ b/source/_themes/wazuh_doc_theme_v3/template-parts/header.html @@ -146,7 +146,7 @@ Our team diff --git a/source/conf.py b/source/conf.py index a4bb09795b..ec7024b695 100644 --- a/source/conf.py +++ b/source/conf.py @@ -676,7 +676,7 @@ def creating_file_list(app, exception): production = False html_context = { - "display_github": True, + "display_github": False, "github_user": "wazuh", "github_repo": "wazuh-documentation", "conf_py_path": "/source/", From 02e1081e735883a23e9079274c831ca4a7fd686b Mon Sep 17 00:00:00 2001 From: vamera Date: Wed, 14 May 2025 09:49:34 +0200 Subject: [PATCH 3/3] Updated GitHub Workflow file compile.yml --- .github/workflows/compile.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e82e93789b..3889d00a06 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -9,9 +9,9 @@ permissions: # events but only for the master branch on: push: - branches: [ 3.11 ] + branches: [ 4.3 ] pull_request: - branches: [ 3.11 ] + branches: [ 4.3 ] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -21,12 +21,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.9, 3.10, 3.11] + python-version: [3.9, 3.11] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -41,4 +41,3 @@ jobs: - name: Run a multi-line script run: | make html -