-
Notifications
You must be signed in to change notification settings - Fork 59
46 lines (46 loc) · 1.22 KB
/
lint.yml
File metadata and controls
46 lines (46 loc) · 1.22 KB
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
44
45
46
---
name: ansible-lint
on:
workflow_dispatch:
pull_request:
paths-ignore:
- .github/**
- assets/**
- docs/**
- .whitesource
- .yamlfmt
- .yamllint
push:
branches:
- main
paths-ignore:
- .github/**
- assets/**
- docs/**
- .whitesource
- .yamlfmt
- .yamllint
permissions: read-all
jobs:
ansible-lint:
name: ansible-lint
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python 3.11
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.11
- name: Install ansible-lint
run: python -m pip install ansible-lint
- name: Run ansible-lint
run: ansible-lint
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@256d634097be96e792d6764f9edaefc4320557b1 # v4
with:
# Path to SARIF file relative to the root of the repository
sarif_file: ansible_lint_result.sarif