Skip to content

Commit

Permalink
feat: show version so its clear if we get off sync (#8049)
Browse files Browse the repository at this point in the history
* show versions

* cool
  • Loading branch information
pvinis authored Jan 25, 2023
1 parent 59e3d8a commit 326e7ee
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -1398,5 +1398,5 @@
}
]
},
"generated_at": "2023-01-24T20:47:50Z"
"generated_at": "2023-01-25T11:05:06Z"
}
2 changes: 2 additions & 0 deletions scripts/secrets-add-all
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -euxo pipefail

# This script runs to add secrets from all repo files to the baseline file.

detect-secrets --version

git ls-files \
| tr '\n' '\0' \
| xargs -0 detect-secrets scan \
Expand Down
2 changes: 2 additions & 0 deletions scripts/secrets-add-staged
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -euxo pipefail

# This script runs to add secrets from staged files to the baseline file.

detect-secrets --version

git diff --staged --name-only \
| tr '\n' '\0' \
| xargs -0 detect-secrets scan \
Expand Down
2 changes: 2 additions & 0 deletions scripts/secrets-check-all
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -euxo pipefail

# This script runs to make sure all repo files don't contain secrets.

detect-secrets-hook --version

git ls-files \
| tr '\n' '\0' \
| xargs -0 detect-secrets-hook \
Expand Down
2 changes: 2 additions & 0 deletions scripts/secrets-check-staged
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -euxo pipefail

# This script runs to make sure staged files don't contain secrets.

detect-secrets-hook --version

git diff --staged --name-only \
| tr '\n' '\0' \
| xargs -0 detect-secrets-hook \
Expand Down
2 changes: 2 additions & 0 deletions scripts/secrets-generate-baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -euxo pipefail

# This script runs a command to generate a baseline of secrets.

detect-secrets --version

detect-secrets scan \
--exclude-files "\.lock$" `# ignore lock files, they are large and full of hashes` \
--exclude-files "\.png$" `# ignore image files` \
Expand Down

0 comments on commit 326e7ee

Please sign in to comment.