-
-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (31 loc) · 893 Bytes
/
ansible-lint.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
---
name: 'ansible-lint'
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- 'main'
workflow_dispatch: {}
permissions:
contents: 'read'
jobs:
build:
name: 'Ansible Lint'
runs-on: 'ubuntu-22.04'
permissions:
contents: 'read'
steps:
- name: 'Harden Runner'
uses: 'step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c' # v2.9.0
with:
disable-sudo: true
egress-policy: 'block'
allowed-endpoints: >-
files.pythonhosted.org:443
github.com:443
pypi.org:443
raw.githubusercontent.com:443
- name: 'Checkout code'
uses: 'actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332' # v4.1.7
- name: 'Run ansible-lint'
uses: 'ansible/ansible-lint@95382d398ea1744bf6bfa47b030f14c38b3f6957' # v24.7.0
...