Skip to content

Commit

Permalink
Docs update, small reordering change (bridgecrewio#2172)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesholland-uk authored Jan 4, 2022
1 parent 54d2225 commit ee3595d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/6.Contribution/Contribute New Terraform Provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ check = LinodeCredentials()
```

And also `checkov/terraform/checks/provider/linode/__init__.py`

```python
from pathlib import Path

modules = Path(__file__).parent.glob("*.py")
__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]
```

Update the security constants `checkov/common/models/consts.py` with the new pattern.

```python
Expand All @@ -204,13 +212,6 @@ secret_key_pattern = re.compile("(?<![A-Za-z0-9/+=])[A-Za-z0-9/+=]{40}(?![A-Za-z
linode_token_pattern = re.compile("(?<![A-Za-z0-9/+=])[A-Za-z0-9/+=]{64}(?![A-Za-z0-9/+=])") # nosec
```

```python
from pathlib import Path

modules = Path(__file__).parent.glob("*.py")
__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]
```

### Include the Provider Checks

Update `checkov/terraform/checks/provider/__init__.py` with `from checkov.terraform.checks.provider.linode import *`, making it:
Expand Down

0 comments on commit ee3595d

Please sign in to comment.