diff --git a/.github/actions/trunk-ci.yaml b/.github/actions/trunk-ci.yaml new file mode 100644 index 0000000..b3df50a --- /dev/null +++ b/.github/actions/trunk-ci.yaml @@ -0,0 +1,22 @@ +name: Pull Request +on: [ pull_request ] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +permissions: read-all + +jobs: + trunk_check: + name: Trunk Code Quality Runner + runs-on: ubuntu-latest + permissions: + checks: write # For trunk to post annotations + contents: read # For repo checkout + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Trunk Code Quality + uses: trunk-io/trunk-action@v1 diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..be0653a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: +- package-ecosystem: github-actions + directories: + - / + schedule: + interval: daily diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/.trunk/.gitignore b/.trunk/.gitignore new file mode 100644 index 0000000..15966d0 --- /dev/null +++ b/.trunk/.gitignore @@ -0,0 +1,9 @@ +*out +*logs +*actions +*notifications +*tools +plugins +user_trunk.yaml +user.yaml +tmp diff --git a/.trunk/configs/.markdownlint.yaml b/.trunk/configs/.markdownlint.yaml new file mode 100644 index 0000000..b40ee9d --- /dev/null +++ b/.trunk/configs/.markdownlint.yaml @@ -0,0 +1,2 @@ +# Prettier friendly markdownlint config (all formatting rules disabled) +extends: markdownlint/style/prettier diff --git a/.trunk/configs/.yamllint.yaml b/.trunk/configs/.yamllint.yaml new file mode 100644 index 0000000..5461275 --- /dev/null +++ b/.trunk/configs/.yamllint.yaml @@ -0,0 +1,21 @@ +rules: + comments: + ignore-shebangs: true + require-starting-space: true + document-end: + present: false + document-start: + present: false + key-duplicates: {} + new-line-at-end-of-file: + present: true + octal-values: + forbid-implicit-octal: true + quoted-strings: + required: only-when-needed + extra-allowed: [ ^http://, ^https://, ^ftp://, "{|}" ] + extra-required: [ QUOTED ] + trailing-spaces: enable + truthy: + allowed-values: [ 'true', 'false', 'True', 'False' ] + check-keys: true diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml new file mode 100644 index 0000000..cafda79 --- /dev/null +++ b/.trunk/trunk.yaml @@ -0,0 +1,27 @@ +# This file controls the behavior of Trunk: https://docs.trunk.io/cli +# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml +version: 0.1 +cli: + version: 1.22.9 +# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins) +plugins: + sources: + - id: trunk + ref: v1.6.6 + uri: https://github.com/trunk-io/plugins +# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) +runtimes: + enabled: + - node@18.20.5 + - python@3.10.8 +# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) +lint: + enabled: + - checkov@3.2.353 + - git-diff-check + - markdownlint@0.43.0 + - prettier@3.4.2 + - trufflehog@3.88.2 + - yamllint@1.35.1 + - actionlint@1.7.6 + - shellcheck@0.10.0 diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..1337baa --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,6 @@ +{ + "recommendations": [ + "trunk.io", + "streetsidesoftware.code-spell-checker" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..60dc39e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "yaml.schemas": { + "https://json.schemastore.org/github-action.json": "file:///Users/skilgore/Developer/repos/aerospike/shared-workflows/.github/actions/setup-gpg/action.yaml", + "https://json.schemastore.org/github-workflow.json": "file:///Users/skilgore/Developer/repos/aerospike/shared-workflows/.github/actions/trunk-ci.yaml" + }, + "cSpell.words": [ + "aerospike", + "debsign", + "rpmsign" + ] +} \ No newline at end of file