Skip to content

Commit 04e9e89

Browse files
[PETOSS-829] Update linter version
Previously action is unmaintained so replacing with megalinter
1 parent 0502525 commit 04e9e89

File tree

2 files changed

+30
-24
lines changed

2 files changed

+30
-24
lines changed

.github/workflows/pr-validation.yml

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,6 @@ jobs:
3838
run: npm run lint
3939

4040

41-
yaml-validation:
42-
runs-on: ubuntu-latest
43-
steps:
44-
- name: YAML Lint
45-
uses: ibiqlik/action-yamllint@v3
46-
with:
47-
file_or_dir: xero_accounting.yaml xero_assets.yaml xero_bankfeeds.yaml xero_files.yaml xero-app-store.yaml xero-identity.yaml xero-payroll-au.yaml xero-payroll-nz.yaml xero-payroll-uk.yaml xero-projects.yaml xero-webhooks.yaml
48-
config_data: |
49-
extends: default
50-
rules:
51-
line-length:
52-
level: warning
53-
trailing-spaces:
54-
level: warning
55-
indentation:
56-
level: warning
57-
colons:
58-
level: warning
59-
commas:
60-
level: warning
61-
new-line-at-end-of-file:
62-
level: warning
63-
6441
codegen-validation:
6542
runs-on: ubuntu-latest
6643
permissions:
@@ -130,4 +107,19 @@ jobs:
130107
repo: xeroapi-sdk-codegen
131108
owner: xero-internal
132109
run_id: ${{ steps.codegen_workflow.outputs.run_id }}
133-
run_timeout_seconds: 420 # 7 minutes
110+
run_timeout_seconds: 420 # 7 minutes
111+
112+
yaml-validation:
113+
runs-on: ubuntu-latest
114+
name: MegaLinter YAML
115+
steps:
116+
- name: Checkout repository
117+
uses: actions/checkout@v4
118+
119+
- name: MegaLinter
120+
uses: oxsecurity/megalinter@v9
121+
env:
122+
ENABLED_LINTERS: YAML_YAMLLINT
123+
YAML_YAMLLINT_CONFIG_FILE: .yamllint.yml
124+
APPLY_FIXES: none
125+
LOG_LEVEL: INFO

.yamllint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
extends: default
2+
rules:
3+
line-length:
4+
level: warning
5+
trailing-spaces:
6+
level: warning
7+
indentation:
8+
level: warning
9+
colons:
10+
level: warning
11+
commas:
12+
level: warning
13+
new-line-at-end-of-file:
14+
level: warning

0 commit comments

Comments
 (0)