-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.26 KB
/
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
---
name: Super-Linter
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
# Controls when the action will run
on:
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# Name the job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
# Run linter against code base
- name: Lint Code Base
uses: super-linter/super-linter/slim@v6.6.0
env:
MULTI_STATUS: false
VALIDATE_ALL_CODEBASE: false
VALIDATE_PYTHON_PYLINT: false
VALIDATE_PYTHON_MYPY: false
VALIDATE_JSCPD: false
VALIDATE_CPP: false
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_CHECKOV: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}