-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(template): sync with ahmadnassri/template-node-lib
- Loading branch information
Ahmad Nassri
committed
Aug 25, 2022
1 parent
11d079f
commit 973afd4
Showing
7 changed files
with
85 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# ------------------------------------------------------------- # | ||
# Note: this file is automatically managed in template-template # | ||
# ------------------------------------------------------------- # | ||
|
||
quiet: true | ||
skip-check: | ||
- CKV_DOCKER_2 | ||
- CKV_GHA_3 | ||
- BC_DKR_3 | ||
- CKV_GIT_1 | ||
- CKV_GIT_5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# ------------------------------------------------------------- # | ||
# Note: this file is automatically managed in template-template # | ||
# ------------------------------------------------------------- # | ||
|
||
ENABLE: ACTION,BASH,MAKEFILE,REPOSITORY,TERRAFORM,HTML,ENV,JAVASCRIPT,JSX,EDITORCONFIG,JSON,DOCKERFILE,MARKDOWN,YAML,CSS,OPENAPI,SQL | ||
DISABLE_LINTERS: | ||
- JSON_PRETTIER | ||
- JAVASCRIPT_PRETTIER | ||
- YAML_PRETTIER | ||
- REPOSITORY_TRIVY | ||
- REPOSITORY_DEVSKIM | ||
- TERRAFORM_CHECKOV | ||
|
||
CONFIG_REPORTER: false | ||
FAIL_IF_MISSING_LINTER_IN_FLAVOR: true | ||
FLAVOR_SUGGESTIONS: false | ||
LOG_LEVEL: INFO | ||
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdown-lint.yml | ||
PRINT_ALPACA: false | ||
SHOW_ELAPSED_TIME: true | ||
VALIDATE_ALL_CODEBASE: false | ||
IGNORE_GENERATED_FILES: true | ||
FILTER_REGEX_EXCLUDE: (dist/*|README.md|test/fixtures/*) | ||
|
||
DISABLE_ERRORS: true # TODO: disable once https://github.com/oxsecurity/megalinter/pull/1798 is merged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# ------------------------------------------------------------- # | ||
# Note: this file is automatically managed in template-template # | ||
# ------------------------------------------------------------- # | ||
|
||
extends: default | ||
|
||
rules: | ||
brackets: | ||
max-spaces-inside: 1 | ||
document-start: | ||
present: false | ||
truthy: | ||
check-keys: false | ||
line-length: | ||
max: 500 | ||
comments: | ||
min-spaces-from-content: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ on: | |
|
||
name: push | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
|
||
jobs: | ||
metadata: | ||
runs-on: ubuntu-latest | ||
|
@@ -40,24 +43,28 @@ jobs: | |
with: | ||
config: .github/linters/.commit-lint.yml | ||
|
||
super-linter: | ||
mega-linter: | ||
timeout-minutes: 5 | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/[email protected] | ||
|
||
- uses: github/super-linter/slim@v4 | ||
- uses: oxsecurity/megalinter/flavors/javascript@v6 | ||
env: | ||
LOG_LEVEL: ERROR | ||
VALIDATE_JSCPD: 'false' | ||
VALIDATE_ALL_CODEBASE: 'false' | ||
IGNORE_GITIGNORED_FILES: 'true' | ||
FILTER_REGEX_EXCLUDE: '/github/workspace/README.md|test/fixtures/*' | ||
GITHUB_TOKEN: ${{ github.token }} | ||
MEGALINTER_CONFIG: .github/linters/.mega-linter.yml | ||
GITHUB_COMMENT_REPORTER: true | ||
GITHUB_STATUS_REPORTER: true | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: ${{ success() }} || ${{ failure() }} | ||
with: | ||
name: mega-linter-reports | ||
path: | | ||
megalinter-reports | ||
mega-linter.log | ||
npm-audit: | ||
timeout-minutes: 5 | ||
|
@@ -122,7 +129,7 @@ jobs: | |
- metadata | ||
- test-run | ||
- commit-lint | ||
- super-linter | ||
- mega-linter | ||
|
||
# only runs on main branch for non template repos | ||
if: | | ||
|
@@ -250,7 +257,7 @@ jobs: | |
- metadata | ||
- test-run | ||
- commit-lint | ||
- super-linter | ||
- mega-linter | ||
|
||
# only runs on main branch for template repos | ||
if: | | ||
|
@@ -260,10 +267,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: ahmadnassri/[email protected] | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- uses: ahmadnassri/action-template-repository-sync@v1.6.0 | ||
- uses: ahmadnassri/action-template-repository-sync@v2 | ||
with: | ||
github-token: ${{ secrets.GH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters