Skip to content

Commit 09d993c

Browse files
authored
open source requirements (#1)
* chore(docs): add support.md * chore(docs): add contributing.md * chore(docs): include terraform fmt in contributing.md * style: terraform fmt * chore(docs): add link to terraform style guide * fix(docs): update repo paths and references * chore(codespaces): add devcontainer config * style: terraform fmt autofixes
1 parent 7aff11e commit 09d993c

6 files changed

Lines changed: 60 additions & 10 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/universal:2",
3+
"features": {
4+
"ghcr.io/devcontainers/features/terraform:1": {}
5+
}
6+
}

CONTRIBUTING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Contributing
2+
3+
[fork]: https://github.com/github/terraform-github-runner-vnet/fork
4+
[pr]: https://github.com/github/terraform-github-runner-vnet/compare
5+
6+
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
7+
8+
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE).
9+
10+
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
11+
12+
## Submitting a pull request
13+
14+
1. [Fork][fork] and clone the repository
15+
1. Configure and install the dependencies: `terraform init`
16+
1. Create a new branch: `git checkout -b my-branch-name`
17+
1. Make your change, validate and confirm it works.
18+
1. Format your code with `terraform fmt`.
19+
1. Push to your fork and [submit a pull request][pr]
20+
1. Pat yourself on the back and wait for your pull request to be reviewed and merged.
21+
22+
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
23+
24+
- Follow the [terraform styling conventions](https://developer.hashicorp.com/terraform/language/style#code-formatting) in the repository and run `terraform fmt` on your code before committing.
25+
- Validate your changes with `terraform validate`, `terraform plan` and `terraform apply`.
26+
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
27+
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
28+
29+
## Resources
30+
31+
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
32+
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
33+
- [GitHub Help](https://help.github.com)

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ Terraform modules that configure and maintain the infrastructure needed to run G
1010

1111
This repo contains two Terraform modules:
1212

13-
* [nsg](./modules/nsg/) module: Uses a [Network Security Group (NSG)](https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview) to manage the network security of the VNet.
13+
- [nsg](./modules/nsg/) module: Uses a [Network Security Group (NSG)](https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview) to manage the network security of the VNet.
1414

1515
```hcl
1616
module "github_runner_vnet" {
1717
# Use the nsg version
18-
source = "github.com/garnertb/github-runner-vnet/nsg"
18+
source = "github.com/github/terraform-github-runner-vnet/nsg"
1919
2020
# The resources use this base_name as a name prefix, e.g. ${base_name}-rg for the resource group
2121
base_name = "vnet-test"
22-
22+
2323
# Retrieve through the GitHub API (see GitHub docs for instructions)
2424
github_enterprise_id = "12345"
2525
}
2626
```
2727

28-
* [firewall](./modules/firewall/) module: Uses an [Azure Firewall](https://learn.microsoft.com/en-us/azure/firewall/overview) to manage the network security of the VNet.
28+
- [firewall](./modules/firewall/) module: Uses an [Azure Firewall](https://learn.microsoft.com/en-us/azure/firewall/overview) to manage the network security of the VNet.
2929

3030
<details><summary>Terraform config for the firewall</summary>
3131

@@ -34,11 +34,11 @@ Provision and configure the infrastructure in Terraform by calling this module:
3434
```hcl
3535
module "github_runner_vnet" {
3636
# Use the firewall version
37-
source = "github.com/garnertb/github-runner-vnet/firewall"
37+
source = "github.com/github/terraform-github-runner-vnet/firewall"
3838
3939
# The resources use this base_name as a name prefix, e.g. ${base_name}-rg for the resource group
4040
base_name = "vnet-test"
41-
41+
4242
# Retrieve through the GitHub API (see GitHub docs for instructions)
4343
github_enterprise_id = "12345"
4444
}

SUPPORT.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Support
2+
3+
## How to file issues and get help
4+
5+
This project uses GitHub issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new issue.
6+
7+
For help or questions about using this project, please open an issue.
8+
9+
- `terraform-github-runner-vnet` is not actively developed but is maintained by GitHub staff **AND THE COMMUNITY**. We will do our best to respond to support and community questions in a timely manner.
10+
11+
## GitHub Support Policy
12+
13+
Support for this project is limited to the resources listed above.

examples/example-firewall/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Create a VNET using an Azure Firewall to control the VNET network access
22
module "vnet" {
3-
source = "github.com/garnertb/github-runner-vnet//modules/firewall"
4-
3+
source = "github.com/github/terraform-github-runner-vnet//modules/firewall"
54
base_name = var.base_name
65
github_business_id = var.github_business_id
76
}

examples/example-nsg/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Create a VNET using an Azure Network Security Group to control the VNET network access
22
module "vnet" {
3-
source = "github.com/garnertb/github-runner-vnet//modules/nsg"
4-
3+
source = "github.com/github/terraform-github-runner-vnet//modules/nsg"
54
base_name = var.base_name
65
github_business_id = var.github_business_id
76
}

0 commit comments

Comments
 (0)