diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 5cef31c..fdb41ea 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -1,24 +1,36 @@ name: Lint -on: [push, pull_request] +on: + push: + branches-ignore: ["main"] + pull_request: + branches: ["main"] + workflow_dispatch: + +permissions: {} + jobs: lint: runs-on: ubuntu-latest - steps: + permissions: + contents: read + packages: read + statuses: write + steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Lint Code Base - uses: github/super-linter@v4 + uses: github/super-linter@v7 env: VALIDATE_ALL_CODEBASE: true VALIDATE_HTML: true FIX_PYTHON_RUFF: true VALIDATE_PYTHON_RUFF: true - VALIDATE_MARKDOWN_PRETTIER : true + VALIDATE_MARKDOWN_PRETTIER: true VALIDATE_GITLEAKS: true VALIDATE_GITHUB_ACTIONS: true - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}