From bb1563266f0cefa422c32091d44266bbf6a30190 Mon Sep 17 00:00:00 2001 From: Gianpaolo Macario Date: Sun, 10 Nov 2024 11:45:48 +0100 Subject: [PATCH] build(workflows): add linter.yml Copied from https://github.com/super-linter/super-linter --- .github/workflows/linter.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..204d984 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,33 @@ +--- + name: Lint + + on: # yamllint disable-line rule:truthy + push: null + pull_request: null + + permissions: {} + + jobs: + build: + name: Lint + runs-on: ubuntu-latest + + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 + + - name: Super-linter + uses: super-linter/super-linter@v7.1.0 # x-release-please-version + env: + # To report GitHub Actions status checks + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}