Skip to content

Commit 6e08e47

Browse files
committed
Release v0.1.0
0 parents  commit 6e08e47

File tree

100 files changed

+8882
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+8882
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @ottramst

.github/CODE_OF_CONDUCT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Code of Conduct
2+
3+
HashiCorp Community Guidelines apply to you when interacting with the community here on GitHub and contributing code.
4+
5+
Please read the full text at https://www.hashicorp.com/community-guidelines

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# See GitHub's documentation for more information on this file:
2+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
3+
version: 2
4+
updates:
5+
# Maintain dependencies for Go modules
6+
- package-ecosystem: "gomod"
7+
directory: "/"
8+
schedule:
9+
# Check for updates to Go modules every weekday
10+
interval: "daily"
11+
groups:
12+
# Group all terraform-plugin-(go|sdk|framework|testing) dependencies together
13+
"terraform-plugin":
14+
patterns:
15+
- "github.com/hashicorp/terraform-plugin-*"
16+
- package-ecosystem: "gomod"
17+
directory: "/tools"
18+
schedule:
19+
interval: "daily"
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
groups:
23+
"github-actions":
24+
patterns:
25+
- "*" # Group all GitHub Actions dependencies together
26+
schedule:
27+
interval: "weekly"
28+
day: "monday"
29+
time: "09:00"
30+
timezone: "Etc/UTC"

.github/pull_request_template.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Related Issue
2+
3+
Fixes # <!-- INSERT ISSUE NUMBER -->
4+
5+
## Description
6+
7+
In plain English, describe your approach to addressing the issue linked above. For example, if you made a particular design decision, let us know why you chose this path instead of another solution.
8+
9+
<!-- heimdall_github_prtemplate:grc-pci_dss-2024-01-05 -->
10+
## Rollback Plan
11+
12+
- [ ] If a change needs to be reverted, we will roll out an update to the code within 7 days.
13+
14+
## Changes to Security Controls
15+
16+
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
go-version:
7+
description: The version of Go to use for the action
8+
type: string
9+
required: true
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-go@v6
17+
with:
18+
go-version: ${{ inputs.go-version }}
19+
go-version-file: 'go.mod'
20+
cache: true
21+
- run: make build-ci
22+
- uses: actions/upload-artifact@v5
23+
with:
24+
name: binary
25+
path: terraform-provider-dependencytrack

.github/workflows/generate.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Generate Check
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
go-version:
7+
description: The version of Go to use for the action
8+
type: string
9+
required: true
10+
terraform-version:
11+
description: The version of Terraform to use for the action
12+
type: string
13+
required: false
14+
default: latest
15+
16+
jobs:
17+
generate:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v5
21+
- uses: actions/setup-go@v6
22+
with:
23+
go-version: ${{ inputs.go-version }}
24+
go-version-file: 'go.mod'
25+
cache: true
26+
# We need the latest version of Terraform for our documentation generation to use
27+
- uses: hashicorp/setup-terraform@v3
28+
with:
29+
terraform_version: ${{ inputs.terraform-version }}
30+
terraform_wrapper: false
31+
- run: make generate
32+
- name: git diff
33+
run: |
34+
git diff --compact-summary --exit-code || \
35+
(echo; echo "Unexpected difference in directories after code generation. Run 'make generate' command and commit."; exit 1)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# DO NOT EDIT - This GitHub Workflow is managed by automation
2+
# https://github.com/hashicorp/terraform-devex-repos
3+
name: Issue Comment Triage
4+
5+
on:
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
issue_comment_triage:
11+
runs-on: ubuntu-latest
12+
env:
13+
# issue_comment events are triggered by comments on issues and pull requests. Checking the
14+
# value of github.event.issue.pull_request tells us whether the issue is an issue or is
15+
# actually a pull request, allowing us to dynamically set the gh subcommand:
16+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only
17+
COMMAND: ${{ github.event.issue.pull_request && 'pr' || 'issue' }}
18+
GH_TOKEN: ${{ github.token }}
19+
steps:
20+
- name: 'Remove waiting-response on comment'
21+
run: gh ${{ env.COMMAND }} edit ${{ github.event.issue.html_url }} --remove-label waiting-response

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
go-version:
7+
description: The version of Go to use for the action.
8+
type: string
9+
required: true
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-go@v6
17+
with:
18+
go-version: ${{ inputs.go-version }}
19+
- uses: golangci/golangci-lint-action@v8
20+
with:
21+
version: latest

.github/workflows/lock.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# DO NOT EDIT - This GitHub Workflow is managed by automation
2+
# https://github.com/hashicorp/terraform-devex-repos
3+
name: 'Lock Threads'
4+
5+
on:
6+
schedule:
7+
- cron: '43 20 * * *'
8+
9+
jobs:
10+
lock:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# NOTE: When TSCCR updates the GitHub action version, update the template workflow file to avoid drift:
14+
# https://github.com/hashicorp/terraform-devex-repos/blob/main/modules/repo/workflows/lock.tftpl
15+
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
16+
with:
17+
process-only: 'issues, prs'
18+
github-token: ${{ github.token }}
19+
issue-inactive-days: '30'
20+
issue-lock-reason: resolved
21+
pr-inactive-days: '30'
22+
pr-lock-reason: resolved

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI/CD
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- 'README.md'
9+
- 'CHANGELOG.md'
10+
11+
jobs:
12+
generate:
13+
uses: ./.github/workflows/generate.yml
14+
with:
15+
go-version: 1.24
16+
lint:
17+
uses: ./.github/workflows/lint.yml
18+
with:
19+
go-version: 1.24
20+
build:
21+
uses: ./.github/workflows/build.yml
22+
with:
23+
go-version: 1.24
24+
test:
25+
uses: ./.github/workflows/test.yml
26+
with:
27+
go-version: 1.24

0 commit comments

Comments
 (0)