Skip to content

addlicense: Ignore Terraform lock file by name (not pattern)#203

Open
radeksimko wants to merge 2 commits intohashicorp:mainfrom
radeksimko:radek/tf-lock-file-by-name
Open

addlicense: Ignore Terraform lock file by name (not pattern)#203
radeksimko wants to merge 2 commits intohashicorp:mainfrom
radeksimko:radek/tf-lock-file-by-name

Conversation

@radeksimko
Copy link
Member

🛠️ Description

It was discovered that one file in our repository is missing copyright header mistakenly just because of the current loose regexp matching based ignore list for the lock file.

I propose we replace that with a simpler (more reliable) filename-based ignoring.

There are no other files currently that would include this kind of header (other than provider lock file always named .terraform.lock.hcl) so this should not produce any false positives but only catch false negatives.

🔗 External Links

👍 Definition of Done

  • New functionality works?
  • Tests added?

🤔 Can be merged upon approval?

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@radeksimko radeksimko requested a review from a team as a code owner March 4, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant