Skip to content

Commit

Permalink
No idea why GitHub Actions fails to find node1-key.pem and root-ca-ke…
Browse files Browse the repository at this point in the history
…y.pem

So no longer treat them as part of the baseline
  • Loading branch information
nutjob4life committed Nov 29, 2023
1 parent 31cfda9 commit 89667e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/secrets-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
# if there is any difference between the known and newly detected secrets, break the build
# Function to compare secrets without listing them
compare_secrets() { diff <(jq -r '.results | keys[] as $key | "\($key),\(.[$key] | .[] | .hashed_secret)"' "$1" | sort) <(jq -r '.results | keys[] as $key | "\($key),\(.[$key] | .[] | .hashed_secret)"' "$2" | sort) >/dev/stdout; }
compare_secrets() { diff <(jq -r '.results | keys[] as $key | "\($key),\(.[$key] | .[] | .hashed_secret)"' "$1" | sort) <(jq -r '.results | keys[] as $key | "\($key),\(.[$key] | .[] | .hashed_secret)"' "$2" | sort) >/dev/null; }
# Check if there's any difference between the known and newly detected secrets
if ! compare_secrets .secrets.baseline .secrets.new; then
Expand Down
18 changes: 0 additions & 18 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -146,24 +146,6 @@
"line_number": 120
}
],
"docker/certs/node1-key.pem": [
{
"type": "Private Key",
"filename": "docker/certs/node1-key.pem",
"hashed_secret": "1348b145fa1a555461c1b790a2f66614781091e9",
"is_verified": false,
"line_number": 1
}
],
"docker/certs/root-ca-key.pem": [
{
"type": "Private Key",
"filename": "docker/certs/root-ca-key.pem",
"hashed_secret": "be4fc4886bd949b369d5e092eb87494f12e57e5b",
"is_verified": false,
"line_number": 1
}
],
"docker/default-config/application.properties": [
{
"type": "Secret Keyword",
Expand Down

0 comments on commit 89667e5

Please sign in to comment.