Skip to content

Commit 02cbb18

Browse files
committed
Initial commit
0 parents  commit 02cbb18

22 files changed

+754
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/dependabot.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: /
6+
target-branch: dev
7+
schedule:
8+
interval: daily
9+
labels:
10+
- github-actions
11+
- dependencies
12+
- package-ecosystem: terraform
13+
directory: /
14+
target-branch: dev
15+
schedule:
16+
interval: daily
17+
labels:
18+
- terraform
19+
- dependencies

.github/workflows/dependabot.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Dependabot Pull Request Approve and Merge
3+
on: pull_request_target
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
jobs:
8+
dependabot:
9+
runs-on: ubuntu-latest
10+
if: ${{ github.actor == 'dependabot[bot]' }}
11+
steps:
12+
- name: Dependabot metadata
13+
id: dependabot-metadata
14+
uses: dependabot/[email protected]
15+
with:
16+
github-token: ${{ secrets.GITHUB_TOKEN }}
17+
- name: Approve a PR
18+
run: gh pr review --approve "$PR_URL"
19+
env:
20+
PR_URL: ${{ github.event.pull_request.html_url }}
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Enable auto-merge for Dependabot PRs
23+
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
24+
run: gh pr merge --auto --squash "$PR_URL"
25+
env:
26+
PR_URL: ${{ github.event.pull_request.html_url }}
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/megalinter.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Linting files
3+
on:
4+
pull_request:
5+
branches: [main, master]
6+
concurrency:
7+
group: ${{ github.ref }}-${{ github.workflow }}
8+
cancel-in-progress: true
9+
jobs:
10+
build:
11+
name: MegaLinter
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v2
16+
with:
17+
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
18+
fetch-depth: 0
19+
- name: MegaLinter
20+
id: ml
21+
uses: megalinter/megalinter/flavors/terraform@v5
22+
env:
23+
VALIDATE_ALL_CODEBASE: true
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
DISABLE: COPYPASTE,SPELL
26+
DISABLE_LINTERS: TERRAFORM_TERRASCAN
27+
- name: Archive production artifacts
28+
if: ${{ success() }} || ${{ failure() }}
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: MegaLinter reports
32+
path: |
33+
report
34+
mega-linter.log

.github/workflows/tagging.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Create tag and release
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
- main
9+
10+
jobs:
11+
tag:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
18+
fetch-depth: 0
19+
- name: Bump version and push tag
20+
id: tag_version
21+
uses: mathieudutour/[email protected]
22+
with:
23+
github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
24+
- name: Create a GitHub release
25+
uses: ncipollo/release-action@v1
26+
with:
27+
tag: ${{ steps.tag_version.outputs.new_tag }}
28+
name: Release ${{ steps.tag_version.outputs.new_tag }}
29+
body: ${{ steps.tag_version.outputs.changelog }}

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
**/.terraform/*
2+
*.tfstate
3+
*.tfstate.*
4+
terraform.rc
5+
.terraformrc
6+
override.tf
7+
override.tf.json
8+
*_override.tf
9+
*_override.tf.json
10+
**/*.tfvars
11+
**/**.tfvars.json
12+
cache/**
13+
14+
crash.log
15+
16+
17+
18+
19+
**/.DS_STORE
20+
report/**
21+
mega-linter.log

.pre-commit-config.yaml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
repos:
3+
- repo: https://github.com/compilerla/conventional-pre-commit
4+
rev: v1.2.0
5+
hooks:
6+
- id: conventional-pre-commit
7+
stages: [commit-msg]
8+
args: []
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: v4.1.0
11+
hooks:
12+
- id: trailing-whitespace
13+
- id: end-of-file-fixer
14+
- id: check-yaml
15+
- id: check-added-large-files
16+
- id: check-builtin-literals
17+
- id: check-byte-order-marker
18+
- id: check-json
19+
- id: check-xml
20+
- id: check-yaml
21+
- id: check-merge-conflict
22+
- id: check-shebang-scripts-are-executable
23+
- id: check-symlinks
24+
- id: mixed-line-ending
25+
- id: detect-private-key
26+
- id: pretty-format-json
27+
- id: detect-aws-credentials
28+
- id: no-commit-to-branch
29+
args:
30+
- -b master
31+
- id: no-commit-to-branch
32+
args:
33+
- -b main
34+
- repo: https://github.com/antonbabenko/pre-commit-terraform
35+
rev: v1.62.0
36+
hooks:
37+
- id: terraform_fmt
38+
- id: terraform_docs
39+
args:
40+
- --hook-config=--path-to-file=README.md
41+
- --hook-config=--add-to-existing-file=true
42+
- --hook-config=--create-file-if-not-exist=true
43+
- id: terraform_tfsec
44+
- id: checkov
45+
- repo: https://github.com/sirosen/check-jsonschema
46+
rev: 0.13.0
47+
hooks:
48+
- id: check-github-workflows
49+
- repo: https://github.com/pre-commit/mirrors-prettier
50+
rev: v2.5.1
51+
hooks:
52+
- id: prettier
53+
stages: [commit]

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# [Unreleased]
2+
3+
## [0.0.1] - 2022-01-01
4+
5+
### Added
6+
7+
- new features
8+
9+
### Changed
10+
11+
- changes in existing functionality
12+
13+
### Depracted
14+
15+
- soon to be removed features
16+
17+
### Removed
18+
19+
- removed features
20+
21+
### Fixed
22+
23+
- bug fixes
24+
25+
### Security
26+
27+
- in case of vulnerabilities

CODEOWNERS.md

Whitespace-only changes.

CONTRIBUTING.md

+132
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
- The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
[INSERT CONTACT METHOD].
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series of
86+
actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or permanent
93+
ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within the
113+
community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.1, available at
119+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120+
121+
Community Impact Guidelines were inspired by
122+
[Mozilla's code of conduct enforcement ladder][mozilla coc].
123+
124+
For answers to common questions about this code of conduct, see the FAQ at
125+
[https://www.contributor-covenant.org/faq][faq]. Translations are available at
126+
[https://www.contributor-covenant.org/translations][translations].
127+
128+
[homepage]: https://www.contributor-covenant.org
129+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130+
[mozilla coc]: https://github.com/mozilla/diversity
131+
[faq]: https://www.contributor-covenant.org/faq
132+
[translations]: https://www.contributor-covenant.org/translations

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 xoap.io
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)