-
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (37 loc) · 1.07 KB
/
lint-check.yml
File metadata and controls
46 lines (37 loc) · 1.07 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
# Super-Linter
# https://github.com/super-linter/super-linter
name: '🔍 Lint Check'
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
lint-check:
name: Lint Check
runs-on: ubuntu-latest
permissions:
contents: read
statuses: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v6 # → permissions: contents: read
with:
fetch-depth: ${{ github.event_name == 'workflow_dispatch' && '1' || '0' }}
persist-credentials: false
- name: Load Super-Linter Configuration
run: |
grep -Ev '^(#|$)' .github/.super-linter.env >> "$GITHUB_ENV"
- name: Run Super-Linter
uses: super-linter/super-linter/slim@v8.5.0
env:
DEFAULT_BRANCH: main
ENABLE_GITHUB_PULL_REQUEST_SUMMARY_COMMENT: 'true'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' && 'true' || 'false' }}