-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
273259f
commit 9f52053
Showing
20 changed files
with
414 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--use-new-action-cache | ||
--action-cache-path=.github/cache/act/actions | ||
--cache-server-path=.github/cache/act/cache | ||
--artifact-server-path=.github/cache/act/artifacts | ||
--artifact-server-port=34019 | ||
--platform self-hosted=ghcr.io/catthehacker/ubuntu:act-latest | ||
--platform ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest | ||
--platform ubuntu-22.04=ghcr.io/catthehacker/ubuntu:act-22.04 | ||
--platform ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04 | ||
--platform ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Trunk Cache | ||
|
||
permissions: read-all | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .trunk/trunk.yaml | ||
schedule: | ||
- cron: "0 9 * * 1" # 9am Tooling Monday | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
trunk-cache: | ||
name: Trunk Cache | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: write | ||
steps: | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.3 | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "Trunk Cache" | ||
uses: trunk-io/trunk-action@v1 | ||
with: | ||
check-mode: populate_cache_only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Trunk Check | ||
|
||
permissions: read-all | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "0 11 * * 2" # 11am Patch Tuesday | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
trunk-check: | ||
name: Trunk Check Runner | ||
runs-on: ubuntu-latest | ||
permissions: | ||
checks: write # For trunk to post annotations | ||
contents: read # For repo checkout | ||
steps: | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.3 | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "Trunk Check" | ||
uses: trunk-io/trunk-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Trunk Upgrade | ||
|
||
permissions: read-all | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .trunk/trunk.yaml | ||
- .github/workflows/trunk.upgrade.yml | ||
schedule: | ||
- cron: "0 11 * * 1" # 11am Tooling Monday | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
trunk-upgrade: | ||
name: Upgrade Trunk | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # For trunk to create PRs | ||
pull-requests: write # For trunk to create PRs | ||
steps: | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.3 | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "Trunk Upgrade" | ||
uses: trunk-io/trunk-action/upgrade@v1 | ||
- name: "PR: Find Pull Request" | ||
uses: juliangruber/find-pull-request-action@v1 | ||
id: find-pull-request | ||
with: | ||
labels: trunk | ||
- name: "PR: Enable Pull Request Automerge" | ||
continue-on-error: true | ||
uses: peter-evans/enable-pull-request-automerge@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
pull-request-number: ${{ steps.find-pull-request.outputs.number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
/.coverage | ||
/phpunit.xml | ||
/.github/cache | ||
/.github/act.secrets | ||
/.secrets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
skip-check: | ||
- CKV_SECRET_* # Skip all checks that start with CKV_SECRET, we already have gitleaks doing this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
title = "Gitleaks config" | ||
[extend] | ||
useDefault = true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ignored: | ||
- DL3006 | ||
- DL3008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
# Prettier friendly markdownlint config (all formatting rules disabled) | ||
extends: markdownlint/style/prettier | ||
# Autoformatter friendly markdownlint config (all formatting rules disabled) | ||
default: true | ||
blank_lines: false | ||
bullet: false | ||
html: false | ||
indentation: false | ||
line_length: false | ||
spaces: false | ||
url: false | ||
whitespace: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LICENCE.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
config { | ||
format = "compact" | ||
module = true | ||
plugin_dir = "~/.tflint.d/plugins" | ||
} | ||
|
||
plugin "terraform" { | ||
enabled = true | ||
preset = "recommended" | ||
} | ||
|
||
plugin "aws" { | ||
enabled = true | ||
version = "0.27.0" | ||
source = "github.com/terraform-linters/tflint-ruleset-aws" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
AVD-DS-0001 | ||
AVD-DS-0002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
extends: relaxed | ||
rules: | ||
quoted-strings: | ||
required: only-when-needed | ||
extra-allowed: ["{|}"] | ||
extra-allowed: ["{|*}"] | ||
empty-values: | ||
forbid-in-block-mappings: false | ||
forbid-in-flow-mappings: false | ||
ignore: | ||
- .github/workflows/*.yml | ||
key-duplicates: {} | ||
octal-values: | ||
forbid-implicit-octal: true | ||
document-start: disable | ||
line-length: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
plugins: [ | ||
{ | ||
name: "preset-default", | ||
params: { | ||
overrides: { | ||
removeViewBox: false, // https://github.com/svg/svgo/issues/1128 | ||
sortAttrs: true, | ||
removeOffCanvasPaths: true, | ||
}, | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml | ||
version: 0.1 | ||
cli: | ||
version: 1.21.0 | ||
version: 1.22.1 | ||
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins) | ||
plugins: | ||
sources: | ||
- id: trunk | ||
ref: v1.4.5 | ||
ref: v1.5.0 | ||
uri: https://github.com/trunk-io/plugins | ||
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) | ||
runtimes: | ||
|
@@ -18,19 +18,42 @@ runtimes: | |
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) | ||
lint: | ||
enabled: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- git-diff-check | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
definitions: | ||
- name: markdownlint | ||
direct_configs: | ||
- .markdownlintignore | ||
- .markdownlint.yaml | ||
actions: | ||
disabled: | ||
- trunk-upgrade-available | ||
enabled: | ||
- trunk-announce | ||
- trunk-check-pre-push | ||
- trunk-fmt-pre-commit | ||
- trunk-upgrade-available | ||
tools: | ||
enabled: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
# Code of Conduct | ||
|
||
This code of conduct outlines our expectations for participants within the open source community. Anyone who violates this code of conduct may be banned from contributing here. | ||
|
||
# Requirements | ||
* __Be friendly and patient.__ | ||
* __Be welcoming__ _We strive to be a community that welcomes and supports people of all backgrounds and identities._ | ||
* __Be respectful__ _Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners._ | ||
## Requirements | ||
|
||
- **Be friendly and patient.** | ||
- **Be welcoming** _We strive to be a community that welcomes and supports people of all backgrounds and identities._ | ||
- **Be respectful** _Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners._ | ||
|
||
## Unacceptable Behaviour | ||
|
||
- Offensive comments related to gender, sexual orientation, disability, mental illness, physical appearance, body size, race, age, regional discrimination, political or religious affiliation. | ||
- Threats of violence, both physical and psycological. | ||
- Incitement of violence towards any individual, including encouraging a person to commit suicide or to engage in self-harm. | ||
- Continued communication after requests to cease. | ||
|
||
# Unacceptable Behaviour | ||
* Offensive comments related to gender, sexual orientation, disability, mental illness, physical appearance, body size, race, age, regional discrimination, political or religious affiliation. | ||
* Threats of violence, both physical and psycological. | ||
* Incitement of violence towards any individual, including encouraging a person to commit suicide or to engage in self-harm. | ||
* Continued communication after requests to cease. | ||
## Interactions | ||
|
||
# Interactions | ||
* Don't just tell somebody they are wrong, or what they have done is wrong. You must always explain what is wrong, and why it is wrong. | ||
* Don't reject contributions that are partially complete and then go and commit your own version. Try to work with the author to complete their work. | ||
* We encourage everyone to participate and are committed to building a community for all, we seek to treat everyone both as fairly and equally as possible. | ||
- Don't just tell somebody they are wrong, or what they have done is wrong. You must always explain what is wrong, and why it is wrong. | ||
- Don't reject contributions that are partially complete and then go and commit your own version. Try to work with the author to complete their work. | ||
- We encourage everyone to participate and are committed to building a community for all, we seek to treat everyone both as fairly and equally as possible. |
Oops, something went wrong.