Skip to content

Commit 5ffdecc

Browse files
ci: on push only, no auto fixes, override to exit on fail
Signed-off-by: No <no@anonymousplanet.org>
1 parent 0ed8df6 commit 5ffdecc

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
# MegaLinter GitHub Action configuration file
3+
# More info at https://megalinter.io
4+
name: '✏️ MegaLinter'
5+
6+
on:
7+
push:
8+
9+
pull_request:
10+
branches:
11+
- main
12+
13+
concurrency:
14+
group: ${{ github.ref }}-${{ github.workflow }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
megalinter:
19+
name: MegaLinter
20+
runs-on: ubuntu-latest
21+
steps:
22+
- if: ${{ env.MAIN_BRANCH }}
23+
uses: actions/checkout@v4
24+
25+
- if: ${{ env.MAIN_BRANCH == 0 }}
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
30+
# MegaLinter
31+
- id: ml
32+
33+
# You can override MegaLinter flavor used to have faster performances
34+
# More info at https://megalinter.io/flavors/
35+
uses: oxsecurity/megalinter/flavors/documentation@v7.13.0
36+
env:
37+
VALIDATE_ALL_CODEBASE: ${{ env.MAIN_BRANCH }}
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
DISABLE: COPYPASTE,SPELL,HTML
40+
DISABLE_LINTERS: REPOSITORY_GITLEAKS,CSS_SCSS_LINT,BASH_SHELLCHECK,JSON_JSONLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_GIT_DIFF,YAML_V8R,MARKDOWN_MARKDOWNLINT_NO_TRAILING_SPACES,MARKDOWN_MARKDOWNLINT_NO_DUPLICATE_HEADING
41+
DISABLE_ERRORS_LINTERS: CSS_STYLELINT,MARKDOWN_MARKDOWN_LINK_CHECK,YAML_YAMLLINT,DOCKERFILE_HADOLINT,REPOSITORY_TRIVY,REPOSITORY_CHECKOV,REPOSITORY_GITLEAKS
42+
MARKDOWN_MARKDOWNLINT_FILTER_REGEX_EXCLUDE: '(export/|briar\.md|donations\.md|LICENSE\.md)'
43+
44+
- name: Archive
45+
uses: actions/upload-artifact@v4
46+
if: success() || failure()
47+
with:
48+
name: MegaLinter reports
49+
path: |
50+
megalinter-reports
51+
mega-linter.log

0 commit comments

Comments
 (0)