Skip to content

Commit 72ddd72

Browse files
authored
chore: pre-publish tidy (#18)
* chore: pre-publish tidy * fixup! chore: pre-publish tidy * update tf test matrix * update envbuilder and kaniko fork to latest versions
1 parent ad8b1fd commit 72ddd72

15 files changed

+236
-184
lines changed

.github/CODEOWNERS

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
* @hashicorp/terraform-devex

.github/CODE_OF_CONDUCT.md

+75-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,77 @@
1-
# Code of Conduct
1+
# Contributor Covenant Code of Conduct
22

3-
HashiCorp Community Guidelines apply to you when interacting with the community here on GitHub and contributing code.
3+
## Our Pledge
44

5-
Please read the full text at https://www.hashicorp.com/community-guidelines
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and
9+
expression, level of experience, education, socio-economic status, nationality,
10+
personal appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or reject
41+
comments, commits, code, wiki edits, issues, and other contributions that are
42+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
43+
contributor for other behaviors that they deem inappropriate, threatening,
44+
offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All complaints
59+
will be reviewed and investigated and will result in a response that is deemed
60+
necessary and appropriate to the circumstances. The project team is obligated to
61+
maintain confidentiality with regard to the reporter of an incident. Further
62+
details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71+
version 1.4, available at
72+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
73+
74+
[homepage]: https://www.contributor-covenant.org
75+
76+
For answers to common questions about this code of conduct, see
77+
https://www.contributor-covenant.org/faq

.github/dependabot.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ updates:
55
- package-ecosystem: "gomod"
66
directory: "/"
77
schedule:
8-
interval: "daily"
8+
interval: "weekly"
99
- package-ecosystem: "github-actions"
1010
directory: "/"
1111
schedule:
12-
interval: "daily"
13-
# TODO: Dependabot only updates hashicorp GHAs in the template repository, the following lines can be removed for consumers of this template
14-
allow:
15-
- dependency-name: "hashicorp/*"
12+
interval: "weekly"

.github/workflows/release.yml

+16-20
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,37 @@
1-
# Terraform Provider release workflow.
2-
name: Release
1+
name: release
32

4-
# This GitHub action creates a release when a tag that matches the pattern
5-
# "v*" (e.g. v0.1.0) is created.
63
on:
74
push:
85
tags:
9-
- 'v*'
6+
- "v*"
107

11-
# Releases need permissions to read and write the repository contents.
12-
# GitHub considers creating releases and uploading assets as writing contents.
138
permissions:
149
contents: write
1510

1611
jobs:
1712
goreleaser:
1813
runs-on: ubuntu-latest
1914
steps:
20-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Unshallow
18+
run: git fetch --prune --unshallow
19+
- name: Setup Go
20+
uses: actions/setup-go@v5
2121
with:
22-
# Allow goreleaser to access older tag information.
23-
fetch-depth: 0
24-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
25-
with:
26-
go-version-file: 'go.mod'
27-
cache: true
28-
- name: Import GPG key
29-
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
22+
go-version: 1.22.4
23+
- name: Import GPG Key
3024
id: import_gpg
25+
uses: crazy-max/[email protected]
3126
with:
3227
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
33-
passphrase: ${{ secrets.PASSPHRASE }}
28+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
3429
- name: Run GoReleaser
35-
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
30+
uses: goreleaser/[email protected]
3631
with:
32+
version: latest
3733
args: release --clean
3834
env:
39-
# GitHub sets the GITHUB_TOKEN secret automatically.
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4135
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
36+
# GitHub sets this automatically
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ name: Tests
66
on:
77
pull_request:
88
paths-ignore:
9-
- 'README.md'
9+
- "README.md"
1010
push:
1111
paths-ignore:
12-
- 'README.md'
12+
- "README.md"
1313

1414
# Testing only needs permissions to read the repository contents.
1515
permissions:
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2626
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2727
with:
28-
go-version-file: 'go.mod'
28+
go-version-file: "go.mod"
2929
cache: true
3030
- run: go mod download
3131
- run: go build -v .
@@ -40,13 +40,13 @@ jobs:
4040
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4141
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
4242
with:
43-
go-version-file: 'go.mod'
43+
go-version-file: "go.mod"
4444
cache: true
4545
# Temporarily download Terraform 1.8 prerelease for function documentation support.
4646
# When Terraform 1.8.0 final is released, this can be removed.
4747
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
4848
with:
49-
terraform_version: '1.8.0-alpha20240216'
49+
terraform_version: "1.8.0-alpha20240216"
5050
terraform_wrapper: false
5151
- run: go generate ./...
5252
- name: git diff
@@ -65,17 +65,16 @@ jobs:
6565
matrix:
6666
# list whatever Terraform versions here you would like to support
6767
terraform:
68-
# TODO: test with more terraform versions. For now, testing with latest.
69-
# - "1.5.*"
70-
# - "1.6.*"
71-
# - "1.7.*"
72-
# - "1.8.*"
68+
- "1.5.*"
69+
- "1.6.*"
70+
- "1.7.*"
71+
- "1.8.*"
7372
- "1.9.*"
7473
steps:
7574
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
7675
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
7776
with:
78-
go-version-file: 'go.mod'
77+
go-version-file: "go.mod"
7978
cache: true
8079
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
8180
with:

0 commit comments

Comments
 (0)