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