-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.25 KB
/
super-linter.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
36
37
38
39
40
41
42
43
44
45
---
name: super-linter
on:
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout with history
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Work around super-linter
shell: bash
run: |
# Work-around for config file detection
cp .github/linters/.commitlintrc.yml .commitlintrc.yml
- name: Run super-linter
uses: super-linter/super-linter/[email protected]
env:
VALIDATE_ALL_CODEBASE: false # only check new or edited files
# language configurations
VALIDATE_CLANG_FORMAT: true
VALIDATE_GIT_COMMITLINT: true
VALIDATE_MARKDOWN: true
VALIDATE_YAML: true
# misc configurations
ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true
MULTI_STATUS: false # disable status report
SUPPRESS_POSSUM: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_GITLEAKS: true
# Work-around for SHA detection
# https://github.com/super-linter/super-linter/issues/6316#issuecomment-2510205626
GITHUB_BEFORE_SHA: ${{ github.event.pull_request.base.sha }}