Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(actions_runner_group): add actions_runner_group module and resources #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
9 changes: 8 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Lint
on: pull_request

permissions:
actions: read
checks: write
contents: read
pull-requests: read
Expand All @@ -16,3 +15,11 @@ jobs:
uses: actions/checkout@v4
- name: Trunk Check
uses: trunk-io/trunk-action@v1
pr-title-check:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
requireScope: true
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml

This file was deleted.

47 changes: 47 additions & 0 deletions .trunk/configs/.terraform-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
formatter: markdown table

content: |-
{{ .Requirements }}

{{ .Providers }}

{{ .Modules }}

{{ .Resources }}

{{ .Inputs }}

{{ .Outputs }}

{{ .Footer }}

output:
file: README.md
template: |-
<!-- BEGIN_TF_DOCS -->
<!-- prettier-ignore-start -->

{{ .Content }}

## Contributing

Contributions are welcome and appreciated!

Found an issue or want to request a feature? [Open an issue](TODO)

Want to fix a bug you found or add some functionality? Fork, clone, commit, push, and PR and we'll check it out.

If you have any issues or are waiting a long time for a PR to get merged then feel free to ping us at [[email protected]](mailto:[email protected]).

## Built By

[![Masterpoint Logo](https://i.imgur.com/RDLnuQO.png)](https://masterpoint.io)

<!-- prettier-ignore-end -->
<!-- END_TF_DOCS -->

settings:
anchor: false
escape: false
html: false
lockfile: false
17 changes: 11 additions & 6 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1
cli:
version: 1.22.2
version: 1.22.3
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.6.1
ref: v1.6.2
uri: https://github.com/trunk-io/plugins
- id: masterpointio
ref: e6b95ba
uri: https://github.com/masterpointio/trunk-plugins
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
enabled:
Expand All @@ -20,22 +23,24 @@ lint:
# Incompatible with some Terraform features: https://github.com/tenable/terrascan/issues/1331
- terrascan
enabled:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected].218
- [email protected].235
- git-diff-check
- [email protected]
- [email protected]
- tflint@0.52.0
- tflint@0.53.0
- [email protected]
- [email protected].5
- [email protected].9
- [email protected]
ignore:
- linters: [tofu]
paths:
- "**/backend.tf.json"
actions:
enabled:
- generate-terraform-docs
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
Expand Down
9 changes: 0 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
# Changelog

## [0.1.1](https://github.com/masterpointio/terraform-module-template/compare/0.1.0...v0.1.1) (2024-08-15)


### Bug Fixes

* remove markdown trailing whitespace ([d609646](https://github.com/masterpointio/terraform-module-template/commit/d6096463b916eb536603d4ca3b2f3315e3fec9f2))
* removes redundant editorconfig settings ([bbe0050](https://github.com/masterpointio/terraform-module-template/commit/bbe0050450cece8074f3d9ff5c3bd72ff01d8a1b))
38 changes: 30 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,51 @@
# terraform-module-template
# terraform-github-organization

[![Release](https://img.shields.io/github/release/masterpointio/terraform-module-template.svg)](https://github.com/masterpointio/terraform-module-template/releases/latest)

This repository serves as a template for creating Terraform modules, providing a standardized structure and essential files for efficient module development. It's designed to ensure consistency and best practices across Terraform projects.
This module and its submodules contain configuration for managing an organization and configuration items which are at the organization scope in github.

## Usage

TODO

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
<!-- BEGIN_TF_DOCS -->
<!-- prettier-ignore-start -->

## Requirements

No requirements.
| Name | Version |
|------|---------|
| terraform | >= 1.0 |
| random | >= 3.0 |

## Providers

No provider.
| Name | Version |
|------|---------|
| random | >= 3.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [random_pet.template](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) | resource |

## Inputs

No input.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| length | The length of the random name | `number` | `2` | no |

## Outputs

No output.
| Name | Description |
|------|-------------|
| random_pet_name | The generated random pet name |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Contributing

Expand All @@ -41,3 +60,6 @@ If you have any issues or are waiting a long time for a PR to get merged then fe
## Built By

[![Masterpoint Logo](https://i.imgur.com/RDLnuQO.png)](https://masterpoint.io)

<!-- prettier-ignore-end -->
<!-- END_TF_DOCS -->
Loading
Loading