2
2
name : Molecule CI/CD
3
3
on :
4
4
pull_request :
5
- branches :
6
- - main
5
+ branches : [main]
7
6
push :
8
- branches :
9
- - main
10
- tags-ignore :
11
- - " **"
7
+ branches : [main]
8
+ tags-ignore : ["**"]
12
9
schedule :
13
10
- cron : " 0 0 1 * *"
14
11
workflow_dispatch :
12
+ permissions : read-all
15
13
jobs :
16
14
ansible-lint :
17
15
name : Ansible Lint
18
- runs-on : ubuntu-22 .04
16
+ runs-on : ubuntu-24 .04
19
17
steps :
20
18
- name : Check out the codebase
21
- uses : actions/checkout@v4
19
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
22
20
23
21
- name : Set up Python 3
24
- uses : actions/setup-python@v5
22
+ uses : actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
25
23
with :
26
24
python-version : 3.x
27
25
28
- - name : Install Ansible Lint
26
+ - name : Install Ansible core and Ansible Lint
29
27
run : pip3 install -r .github/workflows/requirements/requirements_ansible_lint.txt
30
28
31
- - name : Install Ansible collection dependencies
29
+ - name : Install Ansible core collection dependencies
32
30
run : ansible-galaxy install -r .github/workflows/requirements/requirements_ansible.yml
33
31
34
32
- name : Run Ansible Lint
35
33
run : ansible-lint --force-color
36
34
37
35
molecule :
38
36
name : Molecule
39
- runs-on : ubuntu-22 .04
37
+ runs-on : ubuntu-24 .04
40
38
needs : ansible-lint
41
39
env :
42
40
AGENT_DATA_PLANE_KEY : ${{ secrets.AGENT_DATA_PLANE_KEY }}
69
67
steps :
70
68
- name : Check out the codebase
71
69
if : ${{ !(contains(matrix.scenario, 'plus')) || (env.NGINX_CRT != 0 && env.NGINX_KEY != 0) }}
72
- uses : actions/checkout@v4
70
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
73
71
74
72
# - name: Set up Docker QEMU
75
73
# if: ${{ !(contains(matrix.scenario, 'plus')) || (env.NGINX_CRT != 0 && env.NGINX_KEY != 0) }}
@@ -79,11 +77,11 @@ jobs:
79
77
80
78
- name : Set up Python 3
81
79
if : ${{ !(contains(matrix.scenario, 'plus')) || (env.NGINX_CRT != 0 && env.NGINX_KEY != 0) }}
82
- uses : actions/setup-python@v5
80
+ uses : actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
83
81
with :
84
82
python-version : 3.x
85
83
86
- - name : Install Molecule dependencies
84
+ - name : Install Ansible core and Molecule
87
85
if : ${{ !(contains(matrix.scenario, 'plus')) || (env.NGINX_CRT != 0 && env.NGINX_KEY != 0) }}
88
86
run : pip3 install -r .github/workflows/requirements/requirements_molecule.txt
89
87
0 commit comments