update calling super linter
This commit is contained in:
32
.github/workflows/call-super-linter.yaml
vendored
Normal file
32
.github/workflows/call-super-linter.yaml
vendored
Normal file
@@ -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/.*
|
||||
19
.github/workflows/linter.yaml
vendored
19
.github/workflows/linter.yaml
vendored
@@ -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/.*
|
||||
Reference in New Issue
Block a user