diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index a2426a65..ff271f68 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -1,12 +1,19 @@ -name: Lint +--- +name: Super-Linter -on: [pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - '*' -permissions: # added using https://github.com/step-security/secure-workflows +permissions: contents: read jobs: - build: + super-linter: permissions: contents: read # for actions/checkout to fetch code statuses: write # for super-linter/super-linter/slim to mark status of each linter run @@ -14,11 +21,12 @@ jobs: runs-on: ubuntu-latest steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 - - uses: super-linter/super-linter/slim@v8.6.0 + persist-credentials: false + - uses: super-linter/super-linter/slim@9e863354e3ff62e0727d37183162c4a88873df41 # v8.6.0 env: DEFAULT_BRANCH: main # VALIDATE_EDITORCONFIG: true