Skip to content

Commit afe0a34

Browse files
[PATCH] improvements for CI and Bandit GHA workflows (- WIP PR #118 -)
Changes in file .github/workflows/Tests.yml: - tweaked optional extra installs for TOX Changes in file .github/workflows/bandit.yml: - lowered alert threshold to tighten security
1 parent 225a855 commit afe0a34

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/Tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,9 @@ jobs:
702702
OS: 'ubuntu-latest'
703703
PYTHON_VERSION: '3.12'
704704
LANG: 'en_US.utf-8'
705+
CODECLIMATE_REPO_TOKEN: ${{ secrets.CODECLIMATE_TOKEN }}
706+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
707+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
705708

706709
steps:
707710
- uses: actions/checkout@v4
@@ -712,7 +715,7 @@ jobs:
712715
- name: Prep Testing Tox
713716
id: prep-tox
714717
run: |
715-
if [ "$OS" == "ubuntu-latest" ] ; then { apt-get update || true ;} && { apt-get install --assume-yes python python3.6 python3.7 python3.8 python3.9 python3.10 python3.11 || echo "::warning file=.github/workflows/Tests.yml,line=558,endLine=560,title=SKIPPED::SKIP Enhanced TOX Tests." ;} ; fi
718+
if [ "$OS" == "ubuntu-latest" ] ; then { apt-get update || true ;} ; wait ; { apt-get install --assume-yes python python3.6 python3.7 python3.8 python3.9 python3.10 python3.11 || echo "::warning file=.github/workflows/Tests.yml,line=715,endLine=718,title=SKIPPED::SKIP Enhanced TOX Tests." ;} ; wait ; fi
716719
- name: Install dependencies for Tox
717720
run: |
718721
pip install --upgrade "pip>=21.0" "setuptools>=45.0" "wheel>=0.37" "build>=1.0.1";

.github/workflows/bandit.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
branches: [ "master", "stable", feature-*, HOTFIX-* ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ "master" ]
19+
branches: [ "master", "stable" ]
2020

2121
permissions: {}
2222

@@ -25,7 +25,6 @@ jobs:
2525
permissions:
2626
contents: read # for actions/checkout to fetch code
2727
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
28-
2928
runs-on: ubuntu-latest
3029
steps:
3130
- uses: actions/checkout@v4
@@ -39,7 +38,7 @@ jobs:
3938
# File or directory to run bandit on
4039
path: "." # optional, default is .
4140
# Report only issues of a given severity level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
42-
level: high # optional, default is UNDEFINED
41+
level: medium # optional, default is UNDEFINED
4342
# Report only issues of a given confidence level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything)
4443
confidence: high # optional, default is UNDEFINED
4544
# 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)

0 commit comments

Comments
 (0)