diff --git a/.github/workflows/super-linter.yaml b/.github/workflows/super-linter.yaml index 881a44b..c70f243 100644 --- a/.github/workflows/super-linter.yaml +++ b/.github/workflows/super-linter.yaml @@ -33,6 +33,10 @@ on: required: false type: boolean default: false + filter-regex-exclude: + description: A regex to exclude files from linting + required: false + type: string permissions: @@ -92,6 +96,15 @@ jobs: run: | echo VALIDATE_ALL_CODEBASE=${{ !contains(github.event_name, 'pull_request') }} + # customize excluded paths and files with regex + - name: FILTER_REGEX_EXCLUDE + if: ${{ inputs.filter-regex-exclude }} + run: | + # shellcheck disable=2086 + { + echo "FILTER_REGEX_EXCLUDE=${{ inputs.filter-regex-exclude }}" >> $GITHUB_ENV + } + # disable non-DevOps focused linters that might run on sample code or 3rd party code # these env's will get pass to the next step - name: Disable non-DevOps linters