Skip to content

Commit e4544a4

Browse files
authored
Update linting workflow
1 parent 2fc80cd commit e4544a4

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/linting.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
checks['javascript']='true'
6969
elif path.endswith('.py'):
7070
checks['python']='true'
71-
elif '.' in path.split('/')[-1] and not path.endswith('.md'):
71+
elif '.' in path.split('/')[-1] and not (path.startswith('.github') or path.endswith('.md')):
7272
checks['other']='true'
7373
7474
# Setting output variables based on file extensions
@@ -106,15 +106,18 @@ jobs:
106106
(needs.python-linter.result == 'skipped' || needs.checkout.outputs.needs_python_linting == 'false'))
107107
}}
108108
runs-on: ubuntu-latest
109+
permissions:
110+
contents: read
111+
packages: read
112+
statuses: write
113+
109114
steps:
110-
- name: Checking out the repo
111-
uses: actions/[email protected]
112-
with:
113-
fetch-depth: 0
114-
ref: ${{ github.event.pull_request.head.ref }}
115-
- name: Super Linter
116-
uses: super-linter/[email protected]
117-
env:
118-
VALIDATE_ALL_CODEBASE: false
119-
DEFAULT_BRANCH: main
115+
- name: Checkout code
116+
uses: actions/checkout@v4
117+
with:
118+
fetch-depth: 0
119+
120+
- name: Super-linter
121+
uses: super-linter/[email protected]
122+
env:
120123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)