File tree Expand file tree Collapse file tree 1 file changed +13
-32
lines changed Expand file tree Collapse file tree 1 file changed +13
-32
lines changed Original file line number Diff line number Diff line change 1
- # ##########################
2
- # ##########################
3
- # # Linter GitHub Actions ##
4
- # ##########################
5
- # ##########################
6
1
name : Lint Code Base
7
2
8
- #
9
- # Documentation:
10
- # https://help.github.com/en/articles/workflow-syntax-for-github-actions
11
- #
12
-
13
- # ###############################################
14
- # Trigger the workflow on push or pull request #
15
- # but only for the master branch #
16
- # ###############################################
17
3
on :
18
4
push :
19
5
branches :
20
6
- master
21
7
paths :
22
- - ' **.py'
23
8
- ' **.md'
24
9
pull_request :
25
10
branches :
26
11
- master
27
12
paths :
28
- - ' **.py'
29
13
- ' **.md'
30
14
31
- # ##############
32
- # Set the Job #
33
- # ##############
34
15
jobs :
35
16
build :
36
- # Name the Job
37
17
name : Lint Code Base
38
- # Set the agent to run on
39
18
runs-on : ubuntu-latest
40
19
41
- # #################
42
- # Load all steps #
43
- # #################
20
+ permissions :
21
+ contents : read
22
+ packages : read
23
+ # To report GitHub Actions status checks
24
+ statuses : write
25
+
44
26
steps :
45
- # #########################
46
- # Checkout the code base #
47
- # #########################
48
27
- name : Checkout Code
49
28
uses : actions/checkout@v5
29
+ with :
30
+ # super-linter needs the full git history to get the
31
+ # list of files that changed across commits
32
+ fetch-depth : 0
33
+ persist-credentials : false
50
34
51
- # ###############################
52
- # Run Linter against code base #
53
- # ###############################
35
+ # Check https://github.com/super-linter/super-linter for other options
54
36
- name : Lint Code Base
55
37
uses : super-linter/super-linter@v8
56
38
env :
57
39
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58
40
VALIDATE_MARKDOWN : true
59
- VALIDATE_TYPESCRIPT_ES : true
60
- VALIDATE_DOCKER : true
41
+
61
42
You can’t perform that action at this time.
0 commit comments