Skip to content

Commit

Permalink
add workflows and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vysahjk committed Jan 22, 2025
1 parent 0d4161e commit 491ebef
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/generate_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Terraform Docs

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: terraform-docs-gh-actions
uses: terraform-docs/gh-actions@v1.2.0
with:
config-file: .terraform-docs.yml
git-push: true
git-push-sign-off: true
45 changes: 45 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 'Lint'

on:
push:
pull_request:

jobs:
terraform_lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3

- name: Terraform Init
run: terraform init -backend=false

- name: Terraform Validate
run: terraform validate

- name: Terraform Format
run: terraform fmt -check

tofu_lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: OpenTofu - Setup Tofu
uses: opentofu/setup-opentofu@v1.0.3

- name: OpenTofu init
run: tofu init -backend=false

- name: OpenTofu Validate
run: tofu validate

- name: OpenTofu Format
run: tofu fmt -check

21 changes: 21 additions & 0 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
formatter: "markdown"

recursive:
enabled: false
path: modules

output:
file: "README.md"
mode: replace

settings:
color: false
description: "true"
hide-empty: true
read-comments: true
sensitive: true
lockfile: true

sort:
enabled: true
by: required
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Cosmo Tech

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Empty file added README.md
Empty file.
6 changes: 3 additions & 3 deletions variables.app.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
variable "azure_tenant_id" {
type = string
type = string
}
variable "azure_subscription_id" {
type = string
}
variable "azure_client_id" {
type = string
type = string
}
variable "azure_client_secret" {
type = string
type = string
}
variable "audience" {
description = "The App Registration audience type"
Expand Down

0 comments on commit 491ebef

Please sign in to comment.