From d6ac46d0aad968ddce6cec1dd23025972815bf7d Mon Sep 17 00:00:00 2001 From: Craig West Date: Mon, 14 Jul 2025 13:34:35 +0100 Subject: [PATCH 1/9] docs: update pyproject.toml description --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 01b8989..ad719ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "gha-python" -version = "3.1.0" -description = "Add your description here" +version = "3.1.1" +description = "Generic template for Python GitHub Actions with pre-commit and semantic versioning with conventional commit" readme = "README.md" requires-python = ">=3.10" dependencies = [ From 623baa64df4bf7c0ce8577f17b720c5df7576d54 Mon Sep 17 00:00:00 2001 From: Craig West Date: Mon, 14 Jul 2025 13:35:09 +0100 Subject: [PATCH 2/9] docs: update version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ad719ce..3fc92cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "gha-python" -version = "3.1.1" +version = "3.2.0" description = "Generic template for Python GitHub Actions with pre-commit and semantic versioning with conventional commit" readme = "README.md" requires-python = ">=3.10" From 745b9fb5147ed740b20c3051fb9099830be443b4 Mon Sep 17 00:00:00 2001 From: Craig West Date: Mon, 14 Jul 2025 13:37:05 +0100 Subject: [PATCH 3/9] chore: clear workflows folder --- .github/{workflows => templates}/ci.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => templates}/ci.yaml (100%) diff --git a/.github/workflows/ci.yaml b/.github/templates/ci.yaml similarity index 100% rename from .github/workflows/ci.yaml rename to .github/templates/ci.yaml From 720e10433d10fc29ebe95bf12488035a8fa1d0bf Mon Sep 17 00:00:00 2001 From: Craig West Date: Mon, 14 Jul 2025 14:00:12 +0100 Subject: [PATCH 4/9] test: setup --- uv.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uv.lock b/uv.lock index c0850cf..60a8c97 100644 --- a/uv.lock +++ b/uv.lock @@ -61,7 +61,7 @@ wheels = [ [[package]] name = "gha-python" -version = "3.0.0" +version = "3.2.0" source = { virtual = "." } dependencies = [ { name = "mypy" }, From 2ebfc4a070058fc6c63629188d914cac3001dd72 Mon Sep 17 00:00:00 2001 From: Craig West Date: Mon, 14 Jul 2025 15:03:00 +0100 Subject: [PATCH 5/9] test: secrets.py --- src/calculator/secrets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calculator/secrets.py b/src/calculator/secrets.py index 1c51def..0e9cf31 100644 --- a/src/calculator/secrets.py +++ b/src/calculator/secrets.py @@ -3,3 +3,5 @@ api_token = "secret_api_token_here" password = "secret_password_here" secret_key = "secret_key_here" +SECRET_API = "secret_key_here" +SECRET_PROD = "secret_key_here" From 6b7a0d446fd436c1dbc87cdee97136f71ff93b7c Mon Sep 17 00:00:00 2001 From: Craig West Date: Mon, 14 Jul 2025 15:03:44 +0100 Subject: [PATCH 6/9] test: secrets.py --- scan_secrets.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scan_secrets.py b/scan_secrets.py index f458527..9be95c7 100644 --- a/scan_secrets.py +++ b/scan_secrets.py @@ -7,6 +7,10 @@ # Define the words to search for words_to_search = [ + "SECRET_API", + "SECRET_PROD", + "api_token", + "password", "access_key", "access_token", "api_key", @@ -50,10 +54,9 @@ "twilio_token", ] -words_to_search = [] file_types = [".py", ".js"] # Add or remove file types as needed -words_to_search = [] +# words_to_search = [] # Initialize an empty list to store the results results = [] From b22f3aa7ce0a02b9c7bd6919fb27fd146824aeaa Mon Sep 17 00:00:00 2001 From: Craig West Date: Mon, 14 Jul 2025 15:06:44 +0100 Subject: [PATCH 7/9] test: secrets.py --- scan_secrets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scan_secrets.py b/scan_secrets.py index 9be95c7..c8978ca 100644 --- a/scan_secrets.py +++ b/scan_secrets.py @@ -54,9 +54,9 @@ "twilio_token", ] - +words_to_search = [] file_types = [".py", ".js"] # Add or remove file types as needed -# words_to_search = [] + # Initialize an empty list to store the results results = [] From 419180d2a707db533b591c5a608425b30a9d4a93 Mon Sep 17 00:00:00 2001 From: Craig West Date: Mon, 14 Jul 2025 15:07:25 +0100 Subject: [PATCH 8/9] test: secrets.py --- .github/{templates => workflows}/ci.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{templates => workflows}/ci.yaml (100%) diff --git a/.github/templates/ci.yaml b/.github/workflows/ci.yaml similarity index 100% rename from .github/templates/ci.yaml rename to .github/workflows/ci.yaml From 10cabe8afbd2f5e3b69f474259179186ef25abc5 Mon Sep 17 00:00:00 2001 From: Craig West Date: Mon, 14 Jul 2025 15:11:42 +0100 Subject: [PATCH 9/9] feat: scan_secrets.py tested with examples --- TEST.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TEST.md b/TEST.md index 88ae434..10315b4 100644 --- a/TEST.md +++ b/TEST.md @@ -10,4 +10,4 @@ `git commit -m "will not work"` -`git commit -m "docs: update README with setup instructions"` \ No newline at end of file +`git commit -m "docs: update README with setup instructions"` pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy