File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 16
16
``` yml
17
17
name : Linter
18
18
19
- # Run this workflow every time a new commit pushed to your repository
20
19
on : push
21
20
22
21
jobs :
23
- # Set the job key. The key is displayed as the job name
24
- # when a job name is not provided
25
- super-lint :
26
- # Name the Job
27
- name : Lint code base
28
- # Set the type of machine to run on
22
+ build :
23
+ name : Lint
29
24
runs-on : ubuntu-latest
30
25
26
+ permissions :
27
+ contents : read
28
+ packages : read
29
+ # To report GitHub Actions status checks
30
+ statuses : write
31
+
31
32
steps :
32
- # Checks out a copy of your repository on the ubuntu-latest machine
33
33
- name : Checkout code
34
34
uses : actions/checkout@v4
35
+ with :
36
+ # super-linter needs the full git history to get the
37
+ # list of files that changed across commits
38
+ fetch-depth : 0
35
39
36
- # Runs the Super-Linter action
37
- - name : Run Super-Linter
38
- uses : github/super-linter@v5
40
+ - name : Super-linter
41
+ uses : super-linter/super-linter@v6.3.1 # x-release-please-version
39
42
env :
40
- DEFAULT_BRANCH : main
43
+ # To report GitHub Actions status checks
41
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
45
` ` `
43
46
You can’t perform that action at this time.
0 commit comments