Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Check for plain text password
run: |
search_result=$(grep -r -i -n -o -E "(password|pwd|pass)[[:space:]]*(=|:)*[[:space:]]*[[:alpha:]]+" $GITHUB_WORKSPACE)

if [[ $search_result ]]; then
echo "Sensitive data found! Check it out! \n $search_result"
exit 1
else
echo "Sensitive data not found, everything's ok"
fi
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -57,4 +67,4 @@ jobs:
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: "./coverage.lcov"
parallel-finished: true
parallel-finished: true
1 change: 1 addition & 0 deletions top_secret_stuff.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
password = "plain_text_password_1234"
pwd: asdf
user = "superDuperUser"
Loading