From 47f70a2a4919c257d9662886c2f6e9c6a475170d Mon Sep 17 00:00:00 2001 From: Bret Fisher Date: Sat, 26 Mar 2022 17:13:18 -0400 Subject: [PATCH] update calling super linter --- .github/workflows/call-super-linter.yaml | 32 ++++++++++++++++++++++++ .github/workflows/linter.yaml | 19 -------------- 2 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/call-super-linter.yaml delete mode 100644 .github/workflows/linter.yaml diff --git a/.github/workflows/call-super-linter.yaml b/.github/workflows/call-super-linter.yaml new file mode 100644 index 0000000..545652d --- /dev/null +++ b/.github/workflows/call-super-linter.yaml @@ -0,0 +1,32 @@ +--- +name: Lint Code Base + +on: + + push: + branches: [main] + + pull_request: + +jobs: + call-super-linter: + + name: Call Super-Linter + + # use Reusable Workflows to call my linter config remotely + # https://docs.github.com/en/actions/learn-github-actions/reusing-workflows + + permissions: + contents: read # clone the repo to lint + statuses: write #read/write to repo custom statuses + + #FIXME: customize uri to point to your forked linter repository + uses: bretfisher/super-linter-workflow/.github/workflows/super-linter.yaml@main + + # Optional settings examples + + # with: + + # devops-only: false + + # filter-regex-exclude: html/.* diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml deleted file mode 100644 index cd04c15..0000000 --- a/.github/workflows/linter.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: Lint Code Base - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - call-super-linter: - # use Reusable Workflows to call my linter config remotely - # https://docs.github.com/en/actions/learn-github-actions/reusing-workflows - uses: bretfisher/super-linter-workflow/.github/workflows/super-linter.yaml@main - with: - # disable common code linters - devops-only: true - # prevent scanning a comma separated regex list - #filter-regex-exclude: .*compose-sample-3/html/.*