fix: update GitHub Actions to use latest versions
- Update actions/upload-artifact from v3 to v4 - Update actions/setup-python from v4 to v5 - Update actions/cache from v3 to v4 - Fixes deprecation warnings in CI/CD pipeline
This commit is contained in:
4
.github/workflows/ci-cd.yml
vendored
4
.github/workflows/ci-cd.yml
vendored
@@ -38,12 +38,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: Cache pip dependencies
|
- name: Cache pip dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('app/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('app/requirements.txt') }}
|
||||||
|
|||||||
4
.github/workflows/code-quality.yml
vendored
4
.github/workflows/code-quality.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
bandit -r app -f json -o bandit-report.json || true
|
bandit -r app -f json -o bandit-report.json || true
|
||||||
|
|
||||||
- name: Upload security report
|
- name: Upload security report
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: bandit-security-report
|
name: bandit-security-report
|
||||||
|
|||||||
Reference in New Issue
Block a user