Skip to content

Commit ec7e8c8

Browse files
committed
Update the Lint workflow to align with the super-linter project example.
https://github.com/super-linter/super-linter?tab=readme-ov-file#get-started
1 parent d2f5b28 commit ec7e8c8

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/lint.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,29 @@ on:
99
# Allow other workflows (e.g. Pages) to invoke this one.
1010
workflow_call:
1111

12-
permissions:
13-
contents: read
14-
statuses: write
12+
permissions: {}
1513

1614
jobs:
1715
super-linter:
1816
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
packages: read
20+
statuses: write
1921
steps:
2022
- name: Checkout
2123
uses: actions/checkout@v5
2224
with:
2325
fetch-depth: 0
26+
persist-credentials: false
2427

2528
- name: Run Super-Linter
2629
uses: super-linter/super-linter/slim@v8
2730
env:
2831
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
DEFAULT_BRANCH: main
30-
# Validate all files on push/workflow_dispatch, only changed files on
31-
# PRs
32-
VALIDATE_ALL_CODEBASE: >-
33-
${{ github.event_name != 'pull_request' }}
34-
VALIDATE_MARKDOWN: true
35-
VALIDATE_YAML: true
32+
# DEFAULT_BRANCH: main
33+
# Validate all files on push/workflow_dispatch, only changed files on PRs
34+
# VALIDATE_ALL_CODEBASE: >-
35+
# ${{ github.event_name != 'pull_request' }}
36+
# VALIDATE_MARKDOWN: true
37+
# VALIDATE_YAML: true

0 commit comments

Comments
 (0)