Skip to content

Commit b49c0bf

Browse files
authored
Update super-linter workflow configuration
1 parent 4a3571c commit b49c0bf

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/super-linter.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
name: Lint
33

4-
on: # yamllint disable-line rule:truthy
5-
push: null
6-
pull_request: null
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
79

810
permissions: {}
911

@@ -13,28 +15,20 @@ jobs:
1315
runs-on: ubuntu-latest
1416

1517
permissions:
16-
# contents permission to clone the repository
1718
contents: read
1819
packages: read
19-
# issues and pull-requests permissions to write results as pull
20-
# request comments. Omit them if you don't need summary comments
2120
issues: write
2221
pull-requests: write
23-
# To report GitHub Actions status checks. Omit if you don't need
24-
# to update commit status
2522
statuses: write
2623

2724
steps:
2825
- name: Checkout code
29-
uses: actions/checkout@v5
26+
uses: actions/checkout@v4
3027
with:
31-
# super-linter needs the full git history to get the
32-
# list of files that changed across commits
3328
fetch-depth: 0
3429
persist-credentials: false
3530

3631
- name: Super-linter
37-
uses: super-linter/super-linter@v8.5.0 # x-release-please-version
32+
uses: super-linter/super-linter@v8
3833
env:
39-
# To report GitHub Actions status checks
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)