From faf897f6f43f9e1524db15b20a3021c49f141cc5 Mon Sep 17 00:00:00 2001 From: Aurora <5505558+duggalsu@users.noreply.github.com> Date: Tue, 12 Mar 2024 05:49:23 +0530 Subject: [PATCH 1/2] ci: Fix bandit cron workflow --- .github/workflows/bandit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index 9151a054..b9c270aa 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -13,7 +13,7 @@ name: Bandit on: schedule: - - cron: '33 0 * * 2' + - cron: '0 6 * * 2' jobs: bandit: @@ -33,7 +33,7 @@ jobs: # 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. + # 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) From b02ed5bd859d03aa22328a0545a1f354f672822d Mon Sep 17 00:00:00 2001 From: Aurora <5505558+duggalsu@users.noreply.github.com> Date: Tue, 12 Mar 2024 05:51:47 +0530 Subject: [PATCH 2/2] ci: Updated path settings --- .github/workflows/bandit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index b9c270aa..175d78e2 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -35,7 +35,7 @@ jobs: # 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 . + path: ./src/ # 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)