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

Add HashiCorp copyright headers #1049

Merged
merged 2 commits into from
Mar 7, 2023
Merged
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
15 changes: 15 additions & 0 deletions .copywrite.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
schema_version = 1

project {
license = "MPL-2.0"
copyright_year = 2017
header_ignore = [
".changelog/**",
".github/**",
".goreleaser.yml",
".markdownlint.yml",
".release/**",
"helm/testdata/**",
"vendor/**",
]
}
25 changes: 25 additions & 0 deletions .github/workflows/hc-copywrite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: HashiCorp Copywrite

on:
schedule:
- cron: '30 2 * * *'
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
copywrite:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0

- name: Install copywrite
uses: hashicorp/setup-copywrite@3ace06ad72e6ec679ea8572457b17dbc3960b8ce # v1.0.0

- name: Validate Header Compliance
run: copywrite headers --plan
3 changes: 3 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
needs: get_version_matrix
runs-on: ubuntu-latest
strategy:
# Don't cancel all in-progress and queued jobs in the matrix if any job in the matrix fails.
# That will be helpful to catch any issues related to a particular Terraform version.
fail-fast: false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related change, however, I think that would be a better option.

matrix:
terraform_version: ${{ fromJson(needs.get_version_matrix.outputs.version_matrix) }}
steps:
Expand Down