22name : Molecule CI/CD
33on :
44 pull_request :
5- branches :
6- - main
5+ branches : [main]
76 push :
8- branches :
9- - main
10- tags-ignore :
11- - " **"
7+ branches : [main]
8+ tags-ignore : ["**"]
129 schedule :
1310 - cron : " 0 0 1 * *"
1411 workflow_dispatch :
12+ permissions : read-all
1513jobs :
1614 ansible-lint :
1715 name : Ansible Lint
18- runs-on : ubuntu-22 .04
16+ runs-on : ubuntu-24 .04
1917 steps :
2018 - name : Check out the codebase
21- uses : actions/checkout@v4
19+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2220
2321 - name : Set up Python 3
24- uses : actions/setup-python@v5
22+ uses : actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
2523 with :
2624 python-version : 3.x
2725
28- - name : Install Ansible Lint
26+ - name : Install Ansible core and Ansible Lint
2927 run : pip3 install -r .github/workflows/requirements/requirements_ansible_lint.txt
3028
31- - name : Install Ansible collection dependencies
29+ - name : Install Ansible core collection dependencies
3230 run : ansible-galaxy install -r .github/workflows/requirements/requirements_ansible.yml
3331
3432 - name : Run Ansible Lint
3533 run : ansible-lint --force-color
3634
3735 molecule :
3836 name : Molecule
39- runs-on : ubuntu-22 .04
37+ runs-on : ubuntu-24 .04
4038 needs : ansible-lint
4139 env :
4240 AGENT_DATA_PLANE_KEY : ${{ secrets.AGENT_DATA_PLANE_KEY }}
6967 steps :
7068 - name : Check out the codebase
7169 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
7371
7472 # - name: Set up Docker QEMU
7573 # if: ${{ !(contains(matrix.scenario, 'plus')) || (env.NGINX_CRT != 0 && env.NGINX_KEY != 0) }}
@@ -79,11 +77,11 @@ jobs:
7977
8078 - name : Set up Python 3
8179 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
8381 with :
8482 python-version : 3.x
8583
86- - name : Install Molecule dependencies
84+ - name : Install Ansible core and Molecule
8785 if : ${{ !(contains(matrix.scenario, 'plus')) || (env.NGINX_CRT != 0 && env.NGINX_KEY != 0) }}
8886 run : pip3 install -r .github/workflows/requirements/requirements_molecule.txt
8987
0 commit comments