-
Notifications
You must be signed in to change notification settings - Fork 36
55 lines (49 loc) · 1.73 KB
/
super-linter.yml
File metadata and controls
55 lines (49 loc) · 1.73 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
# This workflow lints changed files based on languages
# used in your code base on push or pull request.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/super-linter/super-linter
name: Lint Code Base
on: # yamllint disable-line rule:truthy
push: null
pull_request: null
permissions: {}
jobs:
build:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v6.0.2
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0
- name: Super-linter
uses: super-linter/super-linter@v8.6.0 # x-release-please-version
env:
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Only lint changed files, not the entire codebase
VALIDATE_ALL_CODEBASE: 'false'
# Disable redundant Prettier linters (formatting-only, not catching bugs)
VALIDATE_CSS_PRETTIER: 'false'
VALIDATE_HTML_PRETTIER: 'false'
VALIDATE_JAVASCRIPT_PRETTIER: 'false'
VALIDATE_JSON_PRETTIER: 'false'
VALIDATE_MARKDOWN_PRETTIER: 'false'
VALIDATE_YAML_PRETTIER: 'false'
# Disable linters not useful for a demo repo
VALIDATE_NATURAL_LANGUAGE: 'false'
VALIDATE_JSCPD: 'false'
VALIDATE_BIOME_FORMAT: 'false'
VALIDATE_BIOME_LINT: 'false'
VALIDATE_CHECKOV: 'false'
VALIDATE_TRIVY: 'false'
VALIDATE_GITHUB_ACTIONS_ZIZMOR: 'false'