Skip to content

Commit

Permalink
Bandit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan committed Oct 6, 2023
1 parent e504ad7 commit a74d780
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: shundor/python-bandit-scan@9cc5aa4a006482b8a7f91134412df6772dbda22c
with: # optional arguments
# exit with 0, even with results found
exit_zero: true # optional, default is DEFAULT
exit_zero: false # optional, default is DEFAULT
# 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
Expand Down
1 change: 0 additions & 1 deletion src/utils/opt_in_checker_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def test_dir_no_writable(self):
self.assertTrue(self.opt_in_checker.check(enable_opt_in_dialog=False) == ConsentCheckResult.NO_FILE)
self.assertTrue(self.opt_in_checker.check(enable_opt_in_dialog=True) == ConsentCheckResult.NO_FILE)
self.assertTrue(self.opt_in_checker.create_or_check_consent_dir() is False)
os.chmod(test_dir, 0o777)

def test_subdir_is_file(self):

Expand Down

0 comments on commit a74d780

Please sign in to comment.