-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix env file parsing * Test env file parsing * Add Terraform detection * Improve password detection * Improve keys detection * Update tests * Update config * Bump version * Bump coverage * Update Terraform parser * Typing for older Python
- Loading branch information
Showing
21 changed files
with
122 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ celerybeat-schedule | |
*.sage.py | ||
|
||
# Environments | ||
.env | ||
#.env | ||
.venv | ||
env/ | ||
venv/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Compliant | ||
export DANGER_GITHUB_API_TOKEN= | ||
export DANGER_GITHUB_API_TOKEN="" | ||
export DANGER_GITHUB_API_TOKEN=<DANGER_GITHUB_API_TOKEN> | ||
export DANGER_GITHUB_API_TOKEN=$token | ||
export DANGER_GITHUB_API_TOKEN="${token}" | ||
# export COMMENTED_API_TOKEN="${token}" | ||
|
||
# Noncompliant | ||
API_TOKEN=${API_TOKEN:-YXNkZmZmZmZm_HARDcoded01} | ||
export DANGER_GITHUB_API_TOKEN=YXNkZmZmZmZm_HARDcoded02 | ||
export DANGER_GITHUB_API_TOKEN="YXNkZmZmZmZm_HARDcoded03" | ||
# export COMMENTED_API_TOKEN="YXNkZmZmZmZm_HARDcoded04" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[compliant] | ||
repository: https://pypi.example.com | ||
repository: https://pypi.fqdn.tld | ||
username: username | ||
password: $${PYPI_PASSWORD} | ||
repository: https://pypi.example.com | ||
repository: https://pypi.fqdn.tld | ||
username: username | ||
password: | ||
|
||
[noncompliant] | ||
repository: https://pypi.example.com | ||
repository: https://pypi.fqdn.tld | ||
username: username | ||
password: hardcoded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Compliant | ||
|
||
variable "ONE_API_TOKEN" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "TWO_API_TOKEN" { | ||
type = string | ||
default = ENV_VAR_TOKEN | ||
} | ||
|
||
variable "PASSWORDS" { | ||
type = list(string) | ||
default = [] | ||
} | ||
|
||
variable "PASSWORDS" { | ||
type = list(string) | ||
default = ["", password] | ||
} | ||
|
||
|
||
# Noncompliant | ||
|
||
variable "ONE_API_TOKEN" { | ||
type = string | ||
default = "23d968ff-10b9-4e6f-a33a-hardcoded01" | ||
} | ||
|
||
variable "TWO_API_TOKEN" { | ||
type = string | ||
description = "Service API Key" | ||
default = "23d968ff-10b9-4e6f-a33a-hardcoded02" | ||
} | ||
|
||
variable "PASSWORDS" { | ||
type = list(string) | ||
default = [ | ||
"23d968ff-10b9-4e6f-a33a-hardcoded03", | ||
"23d968ff-10b9-4e6f-a33a-hardcoded04" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[global] | ||
# Compliant | ||
index = https://pypi.example.com/pypi | ||
index-url = https://username:@pypi.example.com/simple | ||
index = https://pypi.fqdn.tld/pypi | ||
index-url = https://username:@pypi.fqdn.tld/simple | ||
|
||
# Noncompliant | ||
index = https://username:hardcoded1@pypi.example.com/pypi | ||
index-url = https://username:hardcoded2@pypi.example.com/simple | ||
index = https://username:hardcoded1@pypi.fqdn.tld/pypi | ||
index-url = https://username:hardcoded2@pypi.fqdn.tld/simple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VERSION = (2, 3, 0) | ||
VERSION = (2, 3, 1) | ||
|
||
__version__ = ".".join(map(str, VERSION)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.