From a4a2ec7e0e68279e2ca86fffe209b1a5aa64153a Mon Sep 17 00:00:00 2001 From: mjhito Date: Thu, 9 Jan 2025 10:50:00 -0500 Subject: [PATCH 1/6] Update Pipfile From 3bd6c57f65c4746f8a4a4796524ff03347ce1a81 Mon Sep 17 00:00:00 2001 From: mjhito Date: Thu, 9 Jan 2025 10:52:55 -0500 Subject: [PATCH 2/6] Delete .github/workflows/main.yml --- .github/workflows/main.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 062ac49..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Example workflow for Python using Snyk -on: pull_request -jobs: - security: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Run Snyk to check for vulnerabilities - uses: snyk/actions/python@master - env: - SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - with: - args: --file=Pipfile From 33dc07b2487872d4834e4affb6312669226af42b Mon Sep 17 00:00:00 2001 From: mjhito Date: Thu, 9 Jan 2025 10:53:25 -0500 Subject: [PATCH 3/6] Create main.yml --- .github/workflows/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6c7c51e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,14 @@ +name: Example workflow for Python using Snyk +on: pull_request +jobs: + security: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Run Snyk to check for vulnerabilities + uses: snyk/actions/python@master + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + with: + args: --file=Pipfile + command: test From 2cf68087e9a26767911b8b016737d6b70b69ee69 Mon Sep 17 00:00:00 2001 From: mjhito Date: Thu, 9 Jan 2025 11:09:14 -0500 Subject: [PATCH 4/6] Create Pipfile2 --- Pipfile2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Pipfile2 diff --git a/Pipfile2 b/Pipfile2 new file mode 100644 index 0000000..4e1f835 --- /dev/null +++ b/Pipfile2 @@ -0,0 +1,14 @@ +[[source]] +name = "pypi" +url = "https://pypi.org/simple" +verify_ssl = true + +[dev-packages] + +[packages] +flask = "==0.12.1" +numpy = "*" +requests = {editable = true,git = "https://github.com/requests/requests.git"} + +[requires] +python_version = "3.7" From e9332f05119e63ef557bb6e2d987279271608ba7 Mon Sep 17 00:00:00 2001 From: mjhito Date: Thu, 9 Jan 2025 12:21:08 -0500 Subject: [PATCH 5/6] Update main.yml --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6c7c51e..cfa4db9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,15 @@ name: Example workflow for Python using Snyk -on: pull_request +on: push jobs: security: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + - name: Install python + uses: actions/setup-python@v5 + with: + # Semantic version range syntax or exact version of a Python version + python-version: '3.x' - name: Run Snyk to check for vulnerabilities uses: snyk/actions/python@master env: From 0d53538ec3aab762f0ffa2e73ce8d4ae1e838bae Mon Sep 17 00:00:00 2001 From: mjhito Date: Thu, 9 Jan 2025 12:22:53 -0500 Subject: [PATCH 6/6] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfa4db9..b09fb68 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version - python-version: '3.x' + python-version: '3.8' - name: Run Snyk to check for vulnerabilities uses: snyk/actions/python@master env: