-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 856 Bytes
/
Linter.yml
File metadata and controls
28 lines (24 loc) · 856 Bytes
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
---
# Lint our code and throw error if something is looking fishy in the changes
name: Super Linter
on:
pull_request:
branches: [main]
jobs:
super-linter:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Super Linter
uses: github/super-linter@v7
env:
VALIDATE_MARKDOWN: true # Enable Markdown linting
VALIDATE_DOCKERFILE: true # Enable Dockerfile linting
VALIDATE_YAML: true # Enable YAML linting
VALIDATE_GITHUB_ACTIONS: true # Enable GitHub Actions workflow linting
VALIDATE_PYTHON: true # Enable Python linting
VALIDATE_ALL_CODEBASE: false # Lint the entire codebase
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub token for permissions