Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
controlplane-bot authored Jul 3, 2024
0 parents commit 6f08933
Show file tree
Hide file tree
Showing 34 changed files with 1,085 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .conform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
policies:
- type: commit
spec:
header:
length: 89
imperative: true
case: lower
invalidLastCharacters: .
body:
required: true
dco: false
gpg: true
spellcheck:
locale: GB
conventional:
types:
- chore
- docs
- feat
- refactor
- style
- fix
- test
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Dockerfile*
Jenkinsfile*
**/.terraform
.git/

.idea/
*.iml
.gcloudignore
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
root = true

[*]
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
max_line_length = 120
trim_trailing_whitespace = true

[*.py]
indent_size = 4

[{Makefile,makefile,**.mk}]
indent_style = tab

[*.sh]
indent_style = space
indent_size = 2

shell_variant = bash # like -ln=posix
binary_next_line = true # like -bn
switch_case_indent = true # like -ci
space_redirects = true # like -sr
keep_padding = false # like -kp

6 changes: 6 additions & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or
# files from your .gitignore file, remove the corresponding line below:
.git
.gitignore
#!include:.dockerignore
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behaviour:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behaviour**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
For example: I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Question
about: Post a question about the project
title: ''
labels: question
assignees: ''
---

**Your question**
A clear and concise question.

**Additional context**
Add any other context about your question here.
25 changes: 25 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Pull Request
about: A pull request
title: ''
labels: ''
assignees: ''
---

[pull_requests]: https://github.com/controlplaneio/kubesec/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc

<!-- You can erase any parts of this template not applicable to your Pull Request. -->

**All Submissions.**

- [ ] Have you followed the guidelines in our [Contributing document](../../CONTRIBUTING.md)?
- [ ] Have you checked to ensure there aren't other open [Pull Requests][pull_requests] for the same update/change?

**Code Submissions.**

- [ ] Does your submission pass linting, tests, and security analysis?

**Changes to Core Features.**

- [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
- [ ] Have you written new tests for your core changes, as applicable?
34 changes: 34 additions & 0 deletions .github/example_workflows/lint-bash.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Linting - Bash/Bats
on:
push:
branches: [main]
paths:
- "**.bash"
- "**.bats"
- "**.sh"
pull_request:
branches: [main]
paths:
- "**.bash"
- "**.bats"
- "**.sh"

jobs:
shellcheck:
name: shellcheck
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
extention: ["bash", "bats", "sh"]
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Run shellcheck
uses: reviewdog/[email protected]
with:
pattern: "*.${{ matrix.extention }}"
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
27 changes: 27 additions & 0 deletions .github/example_workflows/lint-docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Linting - Dockerfile
on:
push:
branches: [main]
paths:
- "Dockerfile"
- "Dockerfile*"
pull_request:
branches: [main]
paths:
- "Dockerfile"
- "Dockerfile*"

jobs:
hadolint:
name: hadolint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Run hadolint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
23 changes: 23 additions & 0 deletions .github/example_workflows/lint-misspell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Linting - Spellcheck
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/[email protected]
- name: misspell
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
locale: "UK"
exclude: |
"./.git*"
reporter: github-pr-review
26 changes: 26 additions & 0 deletions .github/example_workflows/lint-yaml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Linting - YAML
on:
push:
branches: [main]
paths:
- "**.yml"
- "**.yaml"
pull_request:
branches: [main]
paths:
- "**.yml"
- "**.yaml"

jobs:
yamllint:
name: yamllint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Run yamllint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
27 changes: 27 additions & 0 deletions .github/example_workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '22 16 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
Loading

0 comments on commit 6f08933

Please sign in to comment.