-
Notifications
You must be signed in to change notification settings - Fork 59
42 lines (42 loc) · 1016 Bytes
/
lint.yml
File metadata and controls
42 lines (42 loc) · 1016 Bytes
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
---
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
jobs:
ansible-lint:
name: ansible-lint
runs-on: ubuntu-latest
steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v5
- name: Set up Python 3.11
uses: actions/setup-python@v6
with:
python-version: 3.12
- 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@v3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: ansible_lint_result.sarif