Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/dependabot.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
handleGHRelease: true
manifest: true
4 changes: 4 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Always validate the PR title AND all the commits
titleAndCommits: true
# Disallows use of Merge commits
allowMergeCommits: false
5 changes: 3 additions & 2 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Lint Commit Messages
permissions: read-all

on: [pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6
with:
configFile: "./.github/commitlint.config.mjs"
16 changes: 16 additions & 0 deletions .github/workflows/enable_pr_automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Enable Auto merge PR
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
enable_automerge:
runs-on: ubuntu-latest
steps:
- name: Enable auto-merge for PRs
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.PR_GITHUB_TOKEN}}
18 changes: 18 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

permissions: read-all

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
- uses: terraform-linters/setup-tflint@90f302c255ef959cbfb4bd10581afecdb7ece3e6 # v4.1.1
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
25 changes: 25 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
# optional. customize path to release-please-config.json
config-file: release-please-config.json
# optional. customize path to .release-please-manifest.json
manifest-file: .release-please-manifest.json
30 changes: 0 additions & 30 deletions .github/workflows/terrascan.yaml

This file was deleted.

36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args:
- --allow-multiple-documents
- id: check-json
- id: check-merge-conflict
- id: check-toml
args:
- --allow-multiple-documents
- id: no-commit-to-branch
- id:
check-added-large-files
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.22.0
hooks:
- id: commitlint
stages: [ commit-msg ]
additional_dependencies: [ '@commitlint/config-conventional' ]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.98.1
hooks:
- id: terraform_tflint
- id: terraform_fmt
- id: terraform_checkov
language: docker_image
entry: --tty bridgecrew/checkov:3.2.354 --config-file checkov.yaml
pass_filenames: false
17 changes: 17 additions & 0 deletions checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
block-list-secret-scan: [ ]
branch: master
custom-tool-name: Checkov
compact: true
directory:
- .
download-external-modules: true
evaluate-variables: true
external-modules-download-path: .external_modules
framework:
- - terraform,terraform_plan,yaml,json,github_configuration,github_actions
hard-fail-on: MEDIUM
mask: [ ]
quiet: true
secrets-history-timeout: 12h
secrets-scan-file-type: [ ]
summary-position: top
30 changes: 30 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"release-type": "terraform-module",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false,
"changelog-sections": [
{ "type": "feat", "section": "Features" },
{ "type": "feature", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "revert", "section": "Reverts" },
{ "type": "docs", "section": "Documentation" },
{ "type": "style", "section": "Styles" },
{ "type": "chore", "section": "Miscellaneous Chores" },
{ "type": "refactor", "section": "Code Refactoring" },
{ "type": "test", "section": "Tests" },
{ "type": "build", "section": "Build System" },
{ "type": "ci", "section": "Continuous Integration" }
],
"extra-files": [
"locals.tf"
]
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}
19 changes: 0 additions & 19 deletions template-repo/template/.github/dependabot.yml

This file was deleted.

22 changes: 0 additions & 22 deletions template-repo/template/.github/release.yml

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion template-repo/template/.github/workflows/terrascan.yaml

This file was deleted.

Loading