Skip to content

Commit

Permalink
Replace our various lint actions with github/super-linter.
Browse files Browse the repository at this point in the history
This gets rid of a lot of ugly glue that we'd otherwise have to continue
maintaining ourselves.
  • Loading branch information
sengi committed Jul 8, 2024
1 parent 679a0d0 commit 8a80276
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/actionlint.yml

This file was deleted.

37 changes: 21 additions & 16 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
name: Run linters/fixers
---
name: Lint
on: [push]
permissions: {}
jobs:
shellcheck:
name: Shellcheck
superlinter:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0
hadolint:
name: Hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- uses: jbergstroem/hadolint-gh-action@eac45b98f6d761309202bd201205a8f8c988bfad # v1.11.0
with:
dockerfile: '**/*Dockerfile'
error_level: '1' # Fail on warning or above.
- uses: github/super-linter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_BASH: true
VALIDATE_BASH_EXEC: true
VALIDATE_DOCKERFILE_HADOLINT: true
VALIDATE_EDITORCONFIG: true
VALIDATE_ENV: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
VALIDATE_YAML: true

0 comments on commit 8a80276

Please sign in to comment.