Skip to content

Commit

Permalink
Update bandit.yml for env
Browse files Browse the repository at this point in the history
  • Loading branch information
nambi21 authored Jan 8, 2025
1 parent 89da9c1 commit 5086a46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ jobs:
- name: Set Report Date
run: echo "REPORT_DATE=$(date +'%d-%b-%Y')" >> $GITHUB_ENV

- name: Define JSON Report Path
run: echo "JSON_REPORT_PATH=${{ github.workspace }}/bandit_report.json" >> $GITHUB_ENV

- name: Perform Bandit Analysis
uses: PyCQA/bandit-action@v1
with:
args: -r . -f json -o ${{ env.JSON_REPORT_PATH }}
env:
JSON_REPORT_PATH: ${{ github.workspace }}/${{ env.JSON_REPORT }}

- name: Upload Bandit Report as Artifact
if: always()
Expand Down

0 comments on commit 5086a46

Please sign in to comment.