yor
yor copied to clipboard
--skip-tags is not applied to files in subdirectories
Describe the bug
Tags that should not be applied due to the --skip-tags configuration are applied in files contained within subdirectories relative to where yor is run.
+---------------+----------------------------------------+----------------------+--------------------------------------+--------------------------------------+
| FILE | RESOURCE | TAG KEY | TAG VALUE | YOR ID |
+---------------+----------------------------------------+----------------------+--------------------------------------+--------------------------------------+
| events.tf | xxxxxxxxxxxxxxxxxxxxxxxxxx | yor_trace | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
+ +----------------------------------------+----------------------+--------------------------------------+--------------------------------------+
| | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | yor_trace | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
+ +----------------------------------------+----------------------+--------------------------------------+--------------------------------------+
| | xxxxxxxxxxxxxxxxxxx | yor_trace | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
+ +----------------------------------------+----------------------+--------------------------------------+--------------------------------------+
| | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | yor_trace | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
+---------------+----------------------------------------+----------------------+--------------------------------------+--------------------------------------+
| smoke/main.tf | xxx | yor_trace | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
+ + +----------------------+--------------------------------------+ +
| | | git_repo | xxxxxxxxxxxxxxxxxxxxxxxx | |
+ + +----------------------+--------------------------------------+ +
| | | git_org | xxxxxxxxxxx | |
+ + +----------------------+--------------------------------------+ +
| | | git_modifiers | xxxxxxx | |
+ + +----------------------+--------------------------------------+ +
| | | git_last_modified_by | xxxxxxxxxxxxxxxxx | |
+ + +----------------------+--------------------------------------+ +
| | | git_last_modified_at | xxxxxxxxxxxxxxxxxxx | |
+ + +----------------------+--------------------------------------+ +
| | | git_file | smoke/main.tf | |
+ +----------------------------------------+----------------------+--------------------------------------+--------------------------------------+
To Reproduce
yor tag -d . --skip-tags git_commit, git_file, git_last_modified_at, git_last_modified_by, git_modifiers, git_org, git_repo
Expected behavior
smoke/main.tf should have only the yor_trace tag added.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: GH actions ubuntu 22.04
- Yor Version: 0.1.150
Additional context Add any other context about the problem here (e.g. code snippets).