Skip to content

Commit e76a3a8

Browse files
authored
Initial commit
0 parents  commit e76a3a8

File tree

11 files changed

+328
-0
lines changed

11 files changed

+328
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
### Summary
2+
3+
SUMMARY_GOES_HERE
4+
5+
### Full changelog
6+
7+
* [Implement ...]
8+
* [Fix ...]
9+
10+
### Issues resolved
11+
12+
Fix #XXX
13+
14+
### Documentation
15+
16+
- [ ] Link to the website [documentation PR](https://github.com/Kong/docs.konghq.com/pull/XXX)
17+
18+
### Testing
19+
20+
- [ ] Unit tests
21+
- [ ] E2E tests
22+
- [ ] Manual testing on Universal
23+
- [ ] Manual testing on Kubernetes

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
# File is synced from Kong/template-generic and will be overwritten
3+
version: 2
4+
updates:
5+
- package-ecosystem: docker
6+
directory: /
7+
schedule:
8+
interval: daily
9+
10+
- package-ecosystem: github-actions
11+
directory: /
12+
schedule:
13+
interval: daily

.github/template-sync.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
additional:
3+
- anchore-helm
4+
- docker-fpm
5+
- lacework-manifest
6+
- kong-build-tools-base-images
7+
- kong-internal-unstable-helm
8+
9+
10+
files:
11+
- '!README.md'
12+
- '!.pre-commit-config.yaml'
13+
- '!.secrets.baseline'
14+
- '!**/template-sync.yml'
15+
- '!.github/workflows/sync.yml'
16+
- '!.github/PULL_REQUEST_TEMPLATE.md'
17+
- '!**/CODEOWNERS'
18+
- '!.yamllint'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
# File is synced from Kong/template-generic and will be overwritten
3+
name: Auto Actions
4+
5+
on: pull_request_target # yamllint disable-line rule:truthy
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
12+
jobs:
13+
dependabot-automerge:
14+
runs-on: ubuntu-latest
15+
if: ${{ github.actor == 'dependabot[bot]' }}
16+
steps:
17+
- name: Gather Dependabot metadata
18+
id: metadata
19+
uses: dependabot/[email protected]
20+
with:
21+
github-token: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Approve PR
23+
run: gh pr review --approve "$PR_URL"
24+
env:
25+
PR_URL: ${{github.event.pull_request.html_url}}
26+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
27+
- name: Enable auto-merge
28+
run: gh pr merge --auto --squash "$PR_URL"
29+
env:
30+
PR_URL: ${{github.event.pull_request.html_url}}
31+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/pre-commit.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
# File is synced from Kong/template-generic and will be overwritten
3+
name: pre-commit
4+
5+
on: # yamllint disable-line rule:truthy
6+
pull_request:
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- uses: actions/[email protected]
16+
- name: install shfmt
17+
run: |
18+
mkdir -p $GITHUB_WORKSPACE/bin
19+
curl -L -s -o $GITHUB_WORKSPACE/bin/shfmt https://github.com/mvdan/sh/releases/download/v3.1.2/shfmt_v3.1.2_linux_amd64
20+
chmod +x $GITHUB_WORKSPACE/bin/shfmt
21+
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
22+
- name: pre-commit github auth
23+
env:
24+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
run: |
26+
git version
27+
git config --global url."https://${TOKEN}:[email protected]/".insteadOf "[email protected]:"
28+
- uses: pre-commit/[email protected]
29+
with:
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
extra_args: --from-ref origin/${{ github.base_ref }} --to-ref ${{github.event.pull_request.head.sha}}

.github/workflows/sync.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Sync the template repository
3+
4+
on: # yamllint disable-line rule:truthy
5+
pull_request:
6+
push:
7+
branches: main
8+
9+
jobs:
10+
metadata:
11+
runs-on: ubuntu-latest
12+
13+
outputs:
14+
repository: ${{ steps.metadata.outputs.repository }}
15+
dockerfile: ${{ steps.dockerfile.outputs.exists }}
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- id: metadata
21+
uses: ahmadnassri/action-metadata@v1
22+
23+
sync:
24+
25+
needs:
26+
- metadata
27+
28+
# only runs if the repository is a template
29+
if: ${{ fromJSON(needs.metadata.outputs.repository).is_template }}
30+
31+
runs-on: ubuntu-latest
32+
33+
steps:
34+
- name: Queue
35+
uses: ahmadnassri/[email protected]
36+
- name: Checkout
37+
uses: actions/checkout@v3
38+
- name: Sync
39+
uses: ahmadnassri/[email protected]
40+
with:
41+
github-token: ${{ secrets.GH_TOKEN }}

.pre-commit-config.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
# File is synced from Kong/template-generic and will be overwritten
3+
repos:
4+
- repo: meta
5+
hooks:
6+
- id: check-hooks-apply
7+
- id: check-useless-excludes
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v4.0.1
10+
hooks:
11+
- id: end-of-file-fixer
12+
- id: trailing-whitespace
13+
- id: mixed-line-ending
14+
- id: check-yaml
15+
- id: check-byte-order-marker
16+
- id: check-merge-conflict
17+
- id: end-of-file-fixer
18+
- id: check-added-large-files
19+
- repo: https://github.com/Lucas-C/pre-commit-hooks
20+
rev: v1.1.10
21+
hooks:
22+
- id: forbid-crlf
23+
- id: remove-crlf
24+
- id: forbid-tabs
25+
- id: remove-tabs
26+
- repo: https://github.com/Yelp/detect-secrets
27+
rev: v1.1.0
28+
hooks:
29+
- id: detect-secrets
30+
args: [--baseline, .secrets.baseline]
31+
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
32+
rev: 0.1.1
33+
hooks:
34+
- id: yamlfmt
35+
args: [--mapping, '2', --sequence, '2', --offset, '0', --width, '150']
36+
- repo: https://github.com/adrienverge/yamllint
37+
rev: v1.26.1
38+
hooks:
39+
- id: yamllint
40+
args: [--format, parsable, --strict]

.secrets.baseline

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"version": "1.1.0",
3+
"plugins_used": [
4+
{
5+
"name": "ArtifactoryDetector"
6+
},
7+
{
8+
"name": "AWSKeyDetector"
9+
},
10+
{
11+
"name": "AzureStorageKeyDetector"
12+
},
13+
{
14+
"name": "Base64HighEntropyString",
15+
"limit": 4.5
16+
},
17+
{
18+
"name": "BasicAuthDetector"
19+
},
20+
{
21+
"name": "CloudantDetector"
22+
},
23+
{
24+
"name": "HexHighEntropyString",
25+
"limit": 3.0
26+
},
27+
{
28+
"name": "IbmCloudIamDetector"
29+
},
30+
{
31+
"name": "IbmCosHmacDetector"
32+
},
33+
{
34+
"name": "JwtTokenDetector"
35+
},
36+
{
37+
"name": "KeywordDetector",
38+
"keyword_exclude": ""
39+
},
40+
{
41+
"name": "MailchimpDetector"
42+
},
43+
{
44+
"name": "NpmDetector"
45+
},
46+
{
47+
"name": "PrivateKeyDetector"
48+
},
49+
{
50+
"name": "SlackDetector"
51+
},
52+
{
53+
"name": "SoftlayerDetector"
54+
},
55+
{
56+
"name": "SquareOAuthDetector"
57+
},
58+
{
59+
"name": "StripeDetector"
60+
},
61+
{
62+
"name": "TwilioKeyDetector"
63+
}
64+
],
65+
"filters_used": [
66+
{
67+
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
68+
},
69+
{
70+
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
71+
"min_level": 2
72+
},
73+
{
74+
"path": "detect_secrets.filters.heuristic.is_indirect_reference"
75+
},
76+
{
77+
"path": "detect_secrets.filters.heuristic.is_likely_id_string"
78+
},
79+
{
80+
"path": "detect_secrets.filters.heuristic.is_lock_file"
81+
},
82+
{
83+
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
84+
},
85+
{
86+
"path": "detect_secrets.filters.heuristic.is_potential_uuid"
87+
},
88+
{
89+
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
90+
},
91+
{
92+
"path": "detect_secrets.filters.heuristic.is_sequential_string"
93+
},
94+
{
95+
"path": "detect_secrets.filters.heuristic.is_swagger_file"
96+
},
97+
{
98+
"path": "detect_secrets.filters.heuristic.is_templated_secret"
99+
}
100+
],
101+
"results": {},
102+
"generated_at": "2022-01-17T17:08:21Z"
103+
}

.yamllint

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# File is synced from Kong/template-generic and will be overwritten
3+
extends: default
4+
rules:
5+
line-length: disable
6+
comments: disable
7+
indentation:
8+
spaces: 2
9+
indent-sequences: consistent

CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Default to review by
2+
3+
4+
# Add additional directory-specific reviewers later in the file

0 commit comments

Comments
 (0)