Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NxPKG committed Jul 28, 2024
1 parent fe07a22 commit 4fae457
Show file tree
Hide file tree
Showing 45 changed files with 13,230 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ----------------------------------------------- #
# Note: this file originates in template-template #
# ----------------------------------------------- #

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=test/fixtures/payload.json
GITHUB_REPOSITORY=khulnasoft-lab/action-commit-lint

INPUT_CONFIG=test/fixtures/.commit-lint.yml
INPUT_TOKEN=$GITHUB_TOKEN
5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# ----------------------------------------------- #
# Note: this file originates in template-template #
# ----------------------------------------------- #

github: [khulnasoft]
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# ---------------------------------------------------- #
# Note: this file originates in template-action-docker #
# ---------------------------------------------------- #

version: 2
updates:
- package-ecosystem: npm
open-pull-requests-limit: 10
directory: /action
commit-message:
prefix: build
prefix-development: chore
include: scope
schedule:
interval: daily
time: "10:00"
timezone: America/Toronto

- package-ecosystem: docker
open-pull-requests-limit: 10
directory: /
commit-message:
prefix: build
prefix-development: chore
include: scope
schedule:
interval: daily
time: "10:00"
timezone: America/Toronto
14 changes: 14 additions & 0 deletions .github/linters/.checkov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ----------------------------------------------- #
# Note: this file originates in template-template #
# ----------------------------------------------- #

quiet: true
skip-check:
- CKV_DOCKER_2
- CKV_DOCKER_8
- CKV_GHA_3
- BC_DKR_3
- CKV_GIT_1
- CKV_GIT_5
- CKV_GIT_6
- CKV_TF_1
9 changes: 9 additions & 0 deletions .github/linters/.commit-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ----------------------------------------------- #
# Note: this file originates in template-template #
# ----------------------------------------------- #

extends:
- "@commitlint/config-conventional"

rules:
body-max-line-length: [2, "always", 200]
3 changes: 3 additions & 0 deletions .github/linters/.grype.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
check-for-app-update: false
exclude:
- '**/package-lock.json'
1 change: 1 addition & 0 deletions .github/linters/.lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude_path = [".github"]
156 changes: 156 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# ----------------------------------------------- #
# Note: this file originates in template-template #
# ----------------------------------------------- #

# Heading levels should only increment by one level at a time
MD001: false

# Heading style
MD003:
style: atx

# Unordered list style
MD004:
style: dash

# Inconsistent indentation for list items at the same level
MD005: true

# Unordered list indentation
MD007:
indent: 2
start_indented: false

# Trailing spaces
MD009:
br_spaces: 2
list_item_empty_lines: false
strict: false

# Hard tabs
MD010:
code_blocks: false

# Reversed link syntax
MD011: true

# Multiple consecutive blank lines
MD012:
maximum: 1

# Line length
MD013:
line_length: 360
strict: true
stern: true

# Dollar signs used before commands without showing output
MD014: false

# No space after hash on atx style heading
MD018: true

# Multiple spaces after hash on atx style heading
MD019: true

# No space inside hashes on closed atx style heading
MD020: true

# Multiple spaces inside hashes on closed atx style heading
MD021: true

# Headings should be surrounded by blank lines
MD022:
lines_above: 1
lines_below: 1

# Headings must start at the beginning of the line
MD023: true

# Multiple headings with the same content
MD024:
allow_different_nesting: true

# Multiple top level headings in the same document
MD025: true

# Trailing punctuation in heading
MD026:
punctuation: ".,;:!?。,;:!?"

# Multiple spaces after blockquote symbol
MD027: true

# Blank line inside blockquote
MD028: true

# Ordered list item prefix
MD029:
style: one_or_ordered

# Spaces after list markers
MD030:
ul_single: 1
ol_single: 1
ul_multi: 1
ol_multi: 1

# Fenced code blocks should be surrounded by blank lines
MD031:
list_items: true

# Lists should be surrounded by blank lines
MD032: true

# inline HTML
MD033:
allowed_elements: [details, summary]

# Bare URL used
MD034: true

# Horizontal rule style
MD035:
style: "----"

# Emphasis used instead of a heading
MD036:
punctuation: ".,;:!?。,;:!?"

# Spaces inside emphasis markers
MD037: true

# Spaces inside code span elements
MD038: true

# Spaces inside link text
MD039: true

# Fenced code blocks should have a language specified
MD040: true

# First line in file should be a top level heading
MD041: false

# No empty links
MD042: true

# Required heading structure
MD043: false

# Proper names should have the correct capitalization
MD044: false

# Images should have alternate text (alt text)
MD045: false

# Code block style
MD046:
style: fenced

# Files should end with a single newline character
MD047: true

# Code fence style
MD048:
style: backtick
30 changes: 30 additions & 0 deletions .github/linters/.mega-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# ----------------------------------------------- #
# Note: this file originates in template-template #
# ----------------------------------------------- #

DISABLE:
- COPYPASTE

DISABLE_LINTERS:
- REPOSITORY_TRIVY
- SPELL_CSPELL
- JSON_PRETTIER
- YAML_PRETTIER
- JAVASCRIPT_PRETTIER
- HTML_DJLINT
- REPOSITORY_KICS
- REPOSITORY_TRUFFLEHOG
- REPOSITORY_DEVSKIM # temporarily disabled
- TERRAFORM_TERRASCAN # temporarily disabled

LOG_LEVEL: INFO
PRINT_ALPACA: false
CONFIG_REPORTER: false
SHOW_ELAPSED_TIME: true
FLAVOR_SUGGESTIONS: false
VALIDATE_ALL_CODEBASE: false
IGNORE_GENERATED_FILES: true
FILTER_REGEX_EXCLUDE: (dist/*|README.md|vendor/*|/schemas/*|test/fixtures/*)

MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdown-lint.yml
REPOSITORY_CHECKOV_ARGUMENTS: [--skip-path, schemas, --skip-path, test/fixtures]
17 changes: 17 additions & 0 deletions .github/linters/.yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ----------------------------------------------- #
# Note: this file originates 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
14 changes: 14 additions & 0 deletions .github/workflows/pull_request_target.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ----------------------------------------------- #
# Note: this file originates in template-template #
# ----------------------------------------------- #

name: pull_request_target

on: pull_request_target

permissions: read-all

jobs:
main:
uses: khulnasoft/actions/.github/workflows/pull-request-target.yml@master
secrets: inherit
21 changes: 21 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# ---------------------------------------------------- #
# Note: this file originates in template-action-docker #
# ---------------------------------------------------- #

name: push

on:
- push
- workflow_dispatch

permissions: read-all

jobs:
main:
uses: khulnasoft/actions/.github/workflows/push-action-docker.yml@master
secrets: inherit
permissions:
contents: write
statuses: write
packages: write
pull-requests: write
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ---------------------------------------------------- #
# Note: this file originates in template-action-docker #
# ---------------------------------------------------- #

*.log
.nyc_output
coverage
node_modules
15 changes: 15 additions & 0 deletions .pandoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ----------------------------------------------- #
# Note: this file originates in template-template #
# ----------------------------------------------- #

input-file: docs/README.md
output-file: README.md
metadata-file: colophon.yml
template: docs/README.template

from: gfm
to: gfm

wrap: preserve
reference-links: true
fail-if-warnings: false
Loading

0 comments on commit 4fae457

Please sign in to comment.