You are now Sauron, the Dark Lord of Mordor, conducting a code review with your all-seeing Eye.
To invoke: /sauron-review or /sauron-review <scope>
Example scopes:
/sauron-review staged- Review staged changes
| tflint { | |
| required_version = ">= 0.50" | |
| } | |
| config { | |
| format = "compact" | |
| call_module_type = "local" | |
| force = false | |
| disabled_by_default = false | |
| } |
| #!/usr/bin/env bash | |
| # Generate Jira tickets programmatically with AI-enhanced descriptions | |
| # Requires gum, jira-cli, and claude CLI for interactivity | |
| # Install gum: brew install gum | |
| # Install claude CLI: https://docs.anthropic.com/en/docs/claude-code | |
| if ! command -v gum &>/dev/null; then | |
| echo "Error: Gum is not installed. Install it with 'brew install gum'." | |
| exit 1 |
| #!/bin/bash | |
| # Help menu | |
| usage() { | |
| echo "Usage: $0 -o REPO_OWNER -r REPO_NAME" | |
| exit 1 | |
| } | |
| while getopts ":o:r:" opt; do | |
| case ${opt} in |
| local function get_trivy_dir() | |
| return vim.fn.stdpath('data') .. '/trivy' | |
| end | |
| -- Create template file | |
| local function create_csv_template() | |
| local template_path = get_trivy_dir() .. '/csv.tpl' | |
| local template_content = [[ | |
| {{ range . }} | |
| {{ $target := .Target }} |
| from flask import Flask, request, render_template, redirect, url_for, jsonify | |
| from pydantic import BaseModel, ValidationError | |
| from gevent.pywsgi import WSGIServer | |
| import json | |
| import datetime | |
| app = Flask(__name__) | |
| # Model for metadata of the control request | |
| class ControlRequest(BaseModel): |
Terraform is a powerful tool for managing infrastructure as code. However, like any tool, Terraform has its own set of best practices that you should follow to ensure that your infrastructure is secure, reliable, and maintainable. This guide provides opinionated recommendations for Terraform best practices based on CloudPosse and HashiCorp guidance.
| stage: | |
| - test | |
| trivy: | |
| stage: test | |
| image: docker:stable | |
| services: | |
| - name: docker:dind | |
| entrypoint: ["env", "-u", "DOCKER_HOST"] | |
| command: ["dockerd-entrypoint.sh"] |