From 6760a9f52bfe4dd73407faf21607f822e6bd4d76 Mon Sep 17 00:00:00 2001 From: Romain Lespinasse Date: Wed, 5 Mar 2025 15:57:28 +0100 Subject: [PATCH] Add GitHub Super Linter (#20) Co-authored-by: ECJ222 --- .github/workflows/lint.yml | 16 ++++++++++++++-- .github/workflows/linter.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fea6eea..86a41ea 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..500f475 --- /dev/null +++ b/.github/workflows/linter.yml @@ -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 }}