Add GitHub Super Linter (#20)

Co-authored-by: ECJ222 <enochchejieh@gmail.com>
This commit is contained in:
Romain Lespinasse 2025-03-05 15:57:28 +01:00 committed by GitHub
parent fe9ac00e7d
commit 6760a9f52b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 47 additions and 2 deletions

View File

@ -1,15 +1,27 @@
---
name: Lint Awesome List
on:
on:
push:
branches:
- main
- main
pull_request:
workflow_dispatch:
permissions: read-all
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- uses: actions/checkout@v4
- run: npx awesome-lint
shell: bash

33
.github/workflows/linter.yml vendored Normal file
View File

@ -0,0 +1,33 @@
---
name: Lint Awesome Actions
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions: read-all
jobs:
build:
name: Lint Awesome Actions
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint Awesome Actions
uses: super-linter/super-linter@v7
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}