diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 9c4ed38..463f785 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -3,27 +3,36 @@ # # You can adjust the behavior by modifying this file. # For more information, see: -# https://github.com/github/super-linter +# https://github.com/super-linter/super-linter name: Lint Code Base -on: - push: - branches: [main] - pull_request: - branches: [main] +on: # yamllint disable-line rule:truthy + push: null + pull_request: null + +permissions: {} + jobs: - run-lint: + 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.1.1 + uses: actions/checkout@v4 with: - # Full git history is needed to get a proper list of changed files within `super-linter` + # super-linter needs the full git history to get the + # list of files that changed across commits fetch-depth: 0 - - name: Lint Code Base - uses: github/super-linter@v7 + - name: Super-linter + uses: super-linter/super-linter@v7.1.0 # x-release-please-version env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: main + # To report GitHub Actions status checks GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}