Skip to content

Commit 11188a4

Browse files
authored
Merge branch 'main' into broadcast-workflows
2 parents a0e97ba + 2ba1bf8 commit 11188a4

File tree

9 files changed

+420
-46
lines changed

9 files changed

+420
-46
lines changed

.editorconfig

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
2+
root = true
3+
4+
[{*,.*}]
5+
charset = utf-8
6+
indent_style = space
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.sh]
11+
end_of_line = lf
12+
13+
[{*.bat,*.cmd}]
14+
end_of_line = crlf
15+
16+
[*.go]
17+
# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355
18+
end_of_line = lf
19+
20+
[*.md]
21+
# Trailing whitespace is important in Markdown (they distinguish a new line from a new paragraph)
22+
eclint_indent_style = unset
23+
trim_trailing_whitespace = false
24+
25+
[{go.mod,go.sum,*.go,.gitmodules}]
26+
indent_size = 4
27+
indent_style = tab
28+
29+
[Dockerfile]
30+
indent_size = 4
31+
32+
[*.py]
33+
profile = black
34+
35+
[*.sh]
36+
indent_size = 4

.gitattributes

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
###############################
2+
# Qubership common #
3+
###############################
4+
.editorconfig text
5+
.flake8 text
6+
.gitattributes text
7+
.gitignore text
8+
.helmignore text
9+
.prettierignore text
10+
11+
*.env text eol=lf
12+
*.json text
13+
*.md text
14+
*.mod text
15+
*.robot text
16+
*.sum text
17+
*.tpl text
18+
*.txt text
19+
*.yaml text
20+
*.yml text
21+
22+
LICENSE text
23+
Dockerfile text
24+
25+
/CHANGELOG.md merge=union
26+
/contributors.json merge=union
27+
/CODE-OF-CONDUCT.md text
28+
/CONTRIBUTING.md text
29+
/README.md text
30+
/SECURITY.md text
31+
32+
###############################
33+
# Git Line Endings #
34+
###############################
35+
36+
# Set default behaviour to automatically normalize line endings.
37+
* text=auto
38+
39+
40+
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
41+
# in Windows via a file share from Linux, the scripts will work.
42+
*.{cmd,[cC][mM][dD]} text eol=crlf
43+
*.{bat,[bB][aA][tT]} text eol=crlf
44+
45+
# Force bash scripts to always use LF line endings so that if a repo is accessed
46+
# in Unix via a file share from Windows, the scripts will work.
47+
*.sh text eol=lf
48+
# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355
49+
*.go text eol=lf
50+
51+
##########################################
52+
# Basic .gitattributes for a Java repo.#
53+
##########################################
54+
55+
# Java sources
56+
*.java text diff=java
57+
*.kt text diff=kotlin
58+
*.groovy text diff=java
59+
*.scala text diff=java
60+
*.gradle text diff=java
61+
*.gradle.kts text diff=kotlin
62+
63+
# These files are text and should be normalized (Convert crlf => lf)
64+
*.css text diff=css
65+
*.scss text diff=css
66+
*.sass text
67+
*.df text
68+
*.htm text diff=html
69+
*.html text diff=html
70+
*.js text
71+
*.mjs text
72+
*.cjs text
73+
*.jsp text
74+
*.jspf text
75+
*.jspx text
76+
*.properties text
77+
*.tld text
78+
*.tag text
79+
*.tagx text
80+
*.xml text
81+
82+
# These files are binary and should be left untouched
83+
# (binary is a macro for -text -diff)
84+
*.class binary
85+
*.dll binary
86+
*.ear binary
87+
*.jar binary
88+
*.so binary
89+
*.war binary
90+
*.jks binary
91+
92+
# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes')
93+
mvnw text eol=lf
94+
gradlew text eol=lf
95+
96+
##########################################
97+
# Basic .gitattributes for a python repo.#
98+
##########################################
99+
100+
# Source files
101+
# ============
102+
*.pxd text diff=python
103+
*.py text diff=python
104+
*.py3 text diff=python
105+
*.pyw text diff=python
106+
*.pyx text diff=python
107+
*.pyz text diff=python
108+
*.pyi text diff=python
109+
110+
# Binary files
111+
# ============
112+
*.db binary
113+
*.p binary
114+
*.pkl binary
115+
*.pickle binary
116+
*.pyc binary export-ignore
117+
*.pyo binary export-ignore
118+
*.pyd binary
119+
120+
# Jupyter notebook
121+
*.ipynb text eol=lf
122+
123+
# Note: .db, .p, and .pkl files are associated
124+
# with the python modules ``pickle``, ``dbm.*``,
125+
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
126+
# (among others).

.github/linters/.checkov.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
quiet: true
44

55
skip-check:
6-
# https://www.checkov.io/5.Policy%20Index/kubernetes.html
7-
- CKV_K8S_15 # Image Pull Policy should be Always
8-
- CKV_K8S_21 # The default namespace should not be used
9-
- CKV_K8S_22 # Use read-only filesystem for containers where possible
10-
- CKV_K8S_35 # Prefer using secrets as files over secrets as environment variables
11-
- CKV_K8S_38 # Ensure that Service Account Tokens are only mounted where necessary
12-
- CKV_K8S_40 # Containers should run as a high UID to avoid host conflict
13-
- CKV_K8S_43 # Image should use digest
14-
- CKV2_K8S_5 # No ServiceAccount/Node should be able to read all secrets
15-
- CKV2_K8S_6 # Minimize the admission of pods which lack an associated NetworkPolicy
16-
# https://www.checkov.io/5.Policy%20Index/dockerfile.html
17-
- CKV_DOCKER_2 # Ensure that HEALTHCHECK instructions have been added to container images
18-
# https://www.checkov.io/5.Policy%20Index/secrets.html
19-
- CKV_SECRET_6 # Base64 High Entropy String
20-
# https://www.checkov.io/5.Policy%20Index/github_actions.html
21-
- CKV2_GHA_1 # Ensure top-level permissions are not set to write-all
22-
- CKV_GHA_7 # The build output cannot be affected by user parameters other than the build entry point and the top-level source location. GitHub Actions workflow_dispatch inputs MUST be empty.
6+
# https://www.checkov.io/5.Policy%20Index/kubernetes.html
7+
- CKV_K8S_15 # Image Pull Policy should be Always
8+
- CKV_K8S_21 # The default namespace should not be used
9+
- CKV_K8S_22 # Use read-only filesystem for containers where possible
10+
- CKV_K8S_35 # Prefer using secrets as files over secrets as environment variables
11+
- CKV_K8S_38 # Ensure that Service Account Tokens are only mounted where necessary
12+
- CKV_K8S_40 # Containers should run as a high UID to avoid host conflict
13+
- CKV_K8S_43 # Image should use digest
14+
- CKV2_K8S_5 # No ServiceAccount/Node should be able to read all secrets
15+
- CKV2_K8S_6 # Minimize the admission of pods which lack an associated NetworkPolicy
16+
# https://www.checkov.io/5.Policy%20Index/dockerfile.html
17+
- CKV_DOCKER_2 # Ensure that HEALTHCHECK instructions have been added to container images
18+
# https://www.checkov.io/5.Policy%20Index/secrets.html
19+
- CKV_SECRET_6 # Base64 High Entropy String
20+
# https://www.checkov.io/5.Policy%20Index/github_actions.html
21+
- CKV2_GHA_1 # Ensure top-level permissions are not set to write-all
22+
- CKV_GHA_7 # The build output cannot be affected by user parameters other than the build entry point and the top-level source location. GitHub Actions workflow_dispatch inputs MUST be empty.

.github/release-drafter-config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ categories:
2222
labels:
2323
- documentation
2424

25-
change-template: |
26-
- (#$NUMBER) $TITLE by @$AUTHOR
25+
change-template: "- (#$NUMBER) $TITLE by @$AUTHOR"
2726

2827
no-changes-template: 'No significant changes'
2928

.github/workflows/prettier.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/profanity-filter.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
apply-filter:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- name: Scan issue or pull request for profanity
21-
# Conditionally run the step if the actor isn't a bot
22-
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }}
23-
uses: IEvangelist/profanity-filter@9.07
24-
id: profanity-filter
25-
with:
26-
token: ${{ secrets.GITHUB_TOKEN }}
27-
# See https://bit.ly/potty-mouth-replacement-strategies
28-
replacement-strategy: middle-asterisk # See Replacement strategy
29-
custom-profane-words-url: https://github.com/Hesham-Elbadawi/list-of-banned-words/raw/refs/heads/master/ru
20+
- name: Scan issue or pull request for profanity
21+
# Conditionally run the step if the actor isn't a bot
22+
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }}
23+
uses: IEvangelist/profanity-filter@9.07
24+
id: profanity-filter
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
# See https://bit.ly/potty-mouth-replacement-strategies
28+
replacement-strategy: middle-asterisk # See Replacement strategy
29+
custom-profane-words-url: https://github.com/Hesham-Elbadawi/list-of-banned-words/raw/refs/heads/master/ru

CODEOWNERS

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#####################################################
2+
#
3+
# List of approvers for this repository
4+
#
5+
#####################################################
6+
7+
#
8+
# Learn about CODEOWNERS file format:
9+
# https://help.github.com/en/articles/about-code-owners
10+
#
11+
12+
* @nookyo @borislavr @rparf

0 commit comments

Comments
 (0)