-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (51 loc) · 1.71 KB
/
mega-linter.yml
File metadata and controls
59 lines (51 loc) · 1.71 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# MegaLinter workflow customized for FitFileViewer
name: MegaLinter
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: megalinter-${{ github.ref }}
cancel-in-progress: false
jobs:
megalinter:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: MegaLinter
id: megalinter
uses: oxsecurity/megalinter@62c799d895af9bcbca5eacfebca29d527f125a57 # v9.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISABLE_LINTERS: SPELL_CSPELL
EXCLUDED_DIRECTORIES: libs, tests, screenshots, node_modules, icons
SHOW_ELAPSED_TIME: true
GITHUB_STATUS_REPORTER: true
FILEIO_REPORTER: true
GITHUB_COMMENT_REPORTER: true
JSON_REPORTER: true
JSON_REPORTER_OUTPUT_DETAIL: true
MARKDOWN_SUMMARY_REPORTER: true
SARIF_REPORTER: true
TAP_REPORTER: true
TAP_REPORTER_OUTPUT_DETAIL: true
DISABLE_ERRORS: true
JAVASCRIPT_DEFAULT_STYLE: prettier
PRINT_ALL_FILES: true
# Upload MegaLinter artifacts
- name: Archive production artifacts
if: success() || failure()
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: MegaLinter reports
path: |
megalinter-reports
mega-linter.log
continue-on-error: true