Skip to content

Commit 3e128e6

Browse files
authored
Merge pull request #8542 from wazuh/change/121-gh-workflow-permissions-3.3
[3.3] Workflow permissions and menu updated
2 parents bcf4472 + 340478e commit 3e128e6

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

.github/workflows/compile.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
permissions:
6+
contents: read
7+
8+
# Controls when the action will run. Triggers the workflow on push or pull request
9+
# events but only for the master branch
10+
on:
11+
push:
12+
branches: [ 3.3 ]
13+
pull_request:
14+
branches: [ 3.3 ]
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
python-version: [3.9, 3.11]
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
34+
- uses: actions/checkout@v2
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install -r requirements.txt
39+
40+
# Runs a set of commands using the runners shell
41+
- name: Run a multi-line script
42+
run: |
43+
make html

source/_themes/wazuh_doc_theme_v3/template-parts/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
<a class="dropdown-item" href="{{ theme_wazuh_web_url + '/our-team/' }}" target="_blank" rel="noreferrer noopener">Our team</a>
147147
</li>
148148
<li class="nav-item">
149-
<a class="dropdown-item" href="{{ theme_wazuh_web_url + '/newsroom/' }}" target="_blank" rel="noreferrer noopener">Newsroom</a>
149+
<a class="dropdown-item" href="{{ theme_wazuh_web_url + '/resources/' }}" target="_blank" rel="noreferrer noopener">Resources</a>
150150
</li>
151151
</ul>
152152
</li>

source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def creating_file_list(app, exception):
676676
production = False
677677

678678
html_context = {
679-
"display_github": True,
679+
"display_github": False,
680680
"github_user": "wazuh",
681681
"github_repo": "wazuh-documentation",
682682
"conf_py_path": "/source/",

0 commit comments

Comments
 (0)