Skip to content

Commit 69d1708

Browse files
authored
Merge pull request #94 from NIAEFEUP/fix/ansible-lint
fix: add missing jmespath dependency to ansible action
2 parents e60ef32 + d0b1a35 commit 69d1708

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ansible-linter.yaml

+13-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- fix/ansible-lint
78

89

910
jobs:
@@ -12,11 +13,21 @@ jobs:
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v4
16+
17+
- name: Install dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get --assume-yes --no-install-recommends install python3-pip
21+
python3 -m pip install --user -U ansible ansible-lint jmespath
22+
23+
1524
- name: Run ansible-lint
16-
uses: ansible/ansible-lint@main # or version tag instead of 'main'
25+
run: |
26+
ansible-lint
27+
1728
- name: Upload sarif
1829
if: always()
1930
uses: github/codeql-action/upload-sarif@v2
2031
with:
2132
sarif_file: ansible.sarif
22-
category: ansible-lint
33+
category: ansible-lint

0 commit comments

Comments
 (0)