Skip to content

Commit

Permalink
Added bandit (vulnerability scanning tool) to repo
Browse files Browse the repository at this point in the history
- Added bandit step to Github CI
- Upgraded praw version to 7.4.0
- Added bandit badge to README
  • Loading branch information
William Lam committed Aug 7, 2021
1 parent a08e15d commit 1743237
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 60 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/.github_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ jobs:
run: |
poetry run mypy .
- name: Run bandit to check for vulnerabilities
run: |
poetry run bandit -r hon_patch_notes_game_bot/*.py
- name: Run Pytest and generate coverage report
run: |
poetry run pytest --cov=hon_patch_notes_game_bot tests/ --cov-report=term-missing --cov-report=xml
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

[![codecov](https://codecov.io/gh/ElementUser/HoN-Patch-Notes-Game-Bot/branch/main/graph/badge.svg?token=S0HUUCHDKB)](https://codecov.io/gh/ElementUser/HoN-Patch-Notes-Game-Bot)

[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)

This application automates the process of HoN's Patch Notes Guessing Game that is hosted in a thread on the Reddit platform.

Specifically, the bot is intended to create a thread in the [/r/heroesofnewerth subreddit](https://www.reddit.com/r/HeroesofNewerth/).
Expand Down
Loading

0 comments on commit 1743237

Please sign in to comment.