-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (34 loc) · 1.08 KB
/
megalinter.yaml
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
---
name: MegaLinter
on: # yamllint disable-line rule:truthy
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: MegaLinter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: MegaLinter
uses: megalinter/megalinter/flavors/documentation@v7
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
ENABLE_LINTERS: MARKDOWN_MARKDOWNLINT,ACTION_ACTIONLINT,DOCKERFILE_HADOLINT,GIT_GIT_DIFF,JSON_JSONLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,CREDENTIALS_SECRETLINT
VALIDATE_ALL_CODEBASE: true
PRINT_ALPACA: false
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdownlint.yaml
YAML_YAMLLINT_CONFIG_FILE: .yamllint.yaml
- name: Archive production artifacts
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: MegaLinter reports
path: |
megalinter-reports
mega-linter.log