From 3c7a7b9172fc045082de37c54bda323d2564dc6f Mon Sep 17 00:00:00 2001 From: Nam Chu <117632090+chnam-axonivy@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:47:00 +0700 Subject: [PATCH] Update linter file main.yml --- .github/workflows/main.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c998f1849a1..92f3319674f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,19 +8,25 @@ on: jobs: build: - name: Lint Code Base + 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.1.1 + - 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@v5.7.2 + - name: Super-linter + uses: super-linter/super-linter@v6.3.0 # x-release-please-version env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: ${{ github.event.pull_request.base.ref }} + # To report GitHub Actions status checks GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DISABLE_ERRORS: true