-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 1006 Bytes
/
linters.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# .github/workflows/ansible-lint.yml
name: Ansible Lint
on:
pull_request:
push:
branches:
- main
permissions: read-all
jobs:
analyze-code:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
defaults:
run:
shell: sh
steps:
- name: Check out the repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.10'
- name: Run check-yaml, end-of-file-fixer, trailing-whitespace
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- name: Run ansible-lint
uses: ansible/ansible-lint@95382d398ea1744bf6bfa47b030f14c38b3f6957 # v24.7.0
- name: Install detect-secrets
run: pip install detect-secrets==1.4.0
- name: Run detect-secrets
run: detect-secrets scan