Skip to content

Commit 6178b77

Browse files
committed
ci: integrate super-linter GitHub Actions workflow
- Add a GitHub Actions job that runs super-linter to validate code quality and linting across commits Signed-off-by: appleboy <[email protected]>
1 parent 117ca48 commit 6178b77

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/testing.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,25 @@ jobs:
102102
output: 'trivy-results.sarif'
103103
exit-code: '1'
104104
severity: 'CRITICAL,HIGH'
105+
106+
super-linter:
107+
runs-on: ubuntu-latest
108+
timeout-minutes: 60
109+
permissions:
110+
contents: read
111+
packages: read
112+
# To report GitHub Actions status checks
113+
statuses: write
114+
steps:
115+
- uses: actions/checkout@v4
116+
with:
117+
# super-linter needs the full git history to get the
118+
# list of files that changed across commits
119+
fetch-depth: 0
120+
- name: "Super-linter"
121+
uses: super-linter/super-linter/[email protected]
122+
env:
123+
# To report GitHub Actions status checks
124+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
125+
DEFAULT_BRANCH: main
126+
VALIDATE_BASH: true

0 commit comments

Comments
 (0)