Skip to content

Commit 80fee0e

Browse files
authored
Add HashiCorp copyright headers config (#1984)
1 parent 6c8c4f9 commit 80fee0e

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.copywrite.hcl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
schema_version = 1
2+
3+
project {
4+
license = "MPL-2.0"
5+
copyright_year = 2017
6+
header_ignore = [
7+
".changelog/**",
8+
".github/**",
9+
".golangci.yml",
10+
".goreleaser.yml",
11+
".markdownlint.yml",
12+
".release/**",
13+
"vendor/**",
14+
]
15+
}

.github/workflows/hc-copywrite.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: HashiCorp Copywrite
2+
3+
on:
4+
schedule:
5+
- cron: '30 2 * * *'
6+
pull_request:
7+
branches:
8+
- main
9+
push:
10+
branches:
11+
- main
12+
workflow_dispatch:
13+
14+
jobs:
15+
copywrite:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
20+
21+
- name: Install copywrite
22+
uses: hashicorp/setup-copywrite@3ace06ad72e6ec679ea8572457b17dbc3960b8ce # v1.0.0
23+
24+
- name: Validate Header Compliance
25+
run: copywrite headers --plan

0 commit comments

Comments
 (0)