forked from instaclustr/kafka-ldap-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.3 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: Lint Code Base
on:
pull_request:
pull_request_target:
jobs:
build:
name: Lint Code Base
# If the PR is coming from a fork (pull_request_target), ensure it's opened by "dependabot[bot]".
# Otherwise, clone it normally.
if: |
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') ||
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]')
runs-on: ubuntu-22.04
steps:
- name: Checkout
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Checkout
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/[email protected]
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Lint Code Base
uses: super-linter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
VALIDATE_KOTLIN: false
VALIDATE_KOTLIN_ANDROID: false
VALIDATE_SHELL_SHFMT: false
VALIDATE_BASH: false
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_CHECKOV: false
VALIDATE_JSCPD: false
VALIDATE_MARKDOWN_PRETTIER: false