Skip to content
Merged
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
20 changes: 20 additions & 0 deletions .github/workflows/EOLScan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: EOL Scan

on:
push:
branches:
- main
pull_request:

jobs:
eol-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Scan current project
uses: xeol-io/xeol-action@v1.1.1
with:
path: "."
20 changes: 20 additions & 0 deletions .github/workflows/LicenseCompliance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: License Compliance Scan

on:
push:
branches:
- main
pull_request:

jobs:
license-compliance-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: License Compliance Scan
uses: fossas/fossa-action@main
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
20 changes: 20 additions & 0 deletions .github/workflows/SecretsScan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Secrets Scan

on:
push:
branches:
- main
pull_request:

jobs:
secrets-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main
with:
extra_args: --results=verified,unknown
31 changes: 31 additions & 0 deletions .github/workflows/Vulnerability_Scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Vulnerability Scan

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ 'main']
pull_request:
branches: [ 'main' ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
vulnerability-scan:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

# Vulnerability Scan
- name: Scan current project
uses: anchore/scan-action@v6
with:
path: "."
output-format: "table"
23 changes: 23 additions & 0 deletions .github/workflows/ZanadirScan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Zanadir Scan

on:
push:
branches:
- main
pull_request:

jobs:
zanadir-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run zanadir Github action
uses: mustachecase/zanadir-action@v1
with:
dir: .
debug: true
enforce: false
output: table
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Unit Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install safety
- name: Check for security vulnerabilities
run: |
safety check

test:
needs: security-scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install requests==2.32.4 spotipy==2.25.1
- name: Run tests
run: |
python -m pytest -v
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
python-telegram-bot==20.8
google-generativeai==0.3.2
requests==2.31.0
requests==2.32.4
python-dotenv==1.0.1
schedule==1.2.1
spotipy==2.23.0
spotipy==2.25.1
pytest==8.0.0
pytest-mock==3.12.0