forked from infra/ansible
ci: implement differential yamllint scan
Use vcs-diff-lint (with csdiff backend) to report only new warnings and errors introduced in a PR. This prevents older, pre-existing linter violations from blocking new changes. Same analyzer version is used for both the base and the head commit to ensure consistent results. See: infra/ansible#3143
This commit is contained in:
parent
99f1ff2202
commit
0be5e89880
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/yamllint-diff.yaml
Normal file
23
.forgejo/workflows/yamllint-diff.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
name: Differential yamllint
|
||||
|
||||
"on":
|
||||
push:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
yamllint-job:
|
||||
runs-on: infra-1
|
||||
steps:
|
||||
- name: Repository checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 100
|
||||
|
||||
- name: VCS Diff Lint
|
||||
uses: https://github.com/fedora-copr/vcs-diff-lint-action@v1
|
||||
id: VCS_Diff_Lint
|
||||
with:
|
||||
linter_tags: |
|
||||
yamllint
|
||||
Loading…
Add table
Add a link
Reference in a new issue