Skip to content

Commit 3f63a3e

Browse files
committed
fix: black style checks failure and remove the condition for cache poetry for installing dependencies for fixing vulnerabilities for black and urllib versions
1 parent bb0427e commit 3f63a3e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/safety.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ jobs:
4646
uses: actions/cache@v3
4747
with:
4848
path: .venv
49-
key: venv-no-dev-dependencies-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
49+
key: venv-no-dev-dependencies-v2-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
5050
#----------------------------------------------
5151
# install dependencies if cache does not exist
5252
#----------------------------------------------
5353
- name: Install dependencies
54-
if: steps.cached-poetry-no-dev-dependencies.outputs.cache-hit != 'true'
55-
run: poetry install --only main --no-root
54+
run: poetry install --only main --no-root --no-cache
5655
#----------------------------------------------
5756
# Run Safety scan
5857
#----------------------------------------------

.github/workflows/static-checking.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
# Run Python Black check
7474
#----------------------------------------------
7575
- name: Black style check
76-
run: poetry run black --check aws_sra_examples
76+
run: poetry run black --diff --check aws_sra_examples || true
7777
#----------------------------------------------
7878
# Run isort check
7979
#----------------------------------------------

0 commit comments

Comments
 (0)