Skip to content

Commit

Permalink
Updating CI all around
Browse files Browse the repository at this point in the history
  • Loading branch information
MSAdministrator committed Jul 8, 2023
1 parent b70b1a9 commit 8f7b088
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 30 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Bandit Scan
uses: shundor/python-bandit-scan@9cc5aa4a006482b8a7f91134412df6772dbda22c
uses: shundor/python-bandit-scan@v1.0
with: # optional arguments
# exit with 0, even with results found
exit_zero: true # optional, default is DEFAULT
# Github token of the repository (automatically created by Github)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information.
# File or directory to run bandit on
# path: # optional, default is .
# Report only issues of a given severity level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
# level: # optional, default is UNDEFINED
# Report only issues of a given confidence level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
# confidence: # optional, default is UNDEFINED
# comma-separated list of paths (glob patterns supported) to exclude from scan (note that these are in addition to the excluded paths provided in the config file) (default: .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg)
# excluded_paths: # optional, default is DEFAULT
# comma-separated list of test IDs to skip
# skips: # optional, default is DEFAULT
# path to a .bandit file that supplies command line arguments
# ini_path: # optional, default is DEFAULT

path: "."
level: high
confidence: high
11 changes: 0 additions & 11 deletions .github/workflows/generatepyattckdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,7 @@ jobs:
cd data_collector
poetry config virtualenvs.create false
poetry install
poetry run pip install -r ../requirements.txt
poetry run python run.py
# - name: Generate ATTCK Data
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# cd ..
# poetry run pip install --upgrade pip
# poetry run pip install PyGithub>=1.55
# poetry run pip install deep-translator
# poetry install
# poetry run python run.py
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
if: ${{ steps.release.outputs.release_created }}
- name: Set up poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.3.2
poetry-version: 1.5.1
if: ${{ steps.release.outputs.release_created }}
- name: Publish
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
fail-fast: false
matrix:
include:
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
- { python: "3.8", os: "ubuntu-latest", session: "tests" }
- { python: "3.7", os: "ubuntu-latest", session: "tests" }
env:
NOXSESSION: ${{ matrix.session }}
FORCE_COLOR: "1"
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Install Poetry
run: |
pipx install poetry
curl -sSL https://install.python-poetry.org | python3 -
poetry --version
- name: Install Nox
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Upgrade pip
run: |
Expand All @@ -115,7 +115,7 @@ jobs:
- name: Install Poetry
run: |
pipx install poetry
curl -sSL https://install.python-poetry.org | python3 -
poetry --version
- name: Install Nox
Expand Down

0 comments on commit 8f7b088

Please sign in to comment.