File tree Expand file tree Collapse file tree 1 file changed +22
-19
lines changed Expand file tree Collapse file tree 1 file changed +22
-19
lines changed Original file line number Diff line number Diff line change 1
- # This workflow executes several linters on changed files based on languages used in your code base whenever
2
- # you push a code or open a pull request.
3
- #
4
- # You can adjust the behavior by modifying this file.
5
- # For more information, see:
6
- # https://github.com/github/super-linter
7
- name : Lint Code Base
1
+ name : Lint
2
+
3
+ on : # yamllint disable-line rule:truthy
4
+ push : null
5
+ pull_request : null
6
+
7
+ permissions : {}
8
8
9
- on :
10
- push :
11
- branches : [main]
12
- pull_request :
13
- branches : [main]
14
9
jobs :
15
- run-lint :
10
+ build :
11
+ name : Lint
16
12
runs-on : ubuntu-latest
13
+
14
+ permissions :
15
+ contents : read
16
+ packages : read
17
+ # To report GitHub Actions status checks
18
+ statuses : write
19
+
17
20
steps :
18
21
- name : Checkout code
19
- uses : actions/checkout@v4.1.1
22
+ uses : actions/checkout@v4
20
23
with :
21
- # Full git history is needed to get a proper list of changed files within `super-linter`
24
+ # super-linter needs the full git history to get the
25
+ # list of files that changed across commits
22
26
fetch-depth : 0
23
27
24
- - name : Lint Code Base
25
- uses : github /super-linter@v7
28
+ - name : Super-linter
29
+ uses : super-linter /super-linter@v7.1.0 # x-release-please-version
26
30
env :
27
- VALIDATE_ALL_CODEBASE : false
28
- DEFAULT_BRANCH : main
31
+ # To report GitHub Actions status checks
29
32
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments