Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing actions #1285

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
440e92f
Create bandit_security_test.yml
hardiksharma11 Dec 31, 2023
a311e33
Update bandit_security_test.yml
hardiksharma11 Dec 31, 2023
7720086
Update bandit_security_test.yml
hardiksharma11 Dec 31, 2023
02ba6ab
Create mypy.yml
hardiksharma11 Dec 31, 2023
1673794
Update mypy.yml
hardiksharma11 Dec 31, 2023
151a82d
Update mypy.yml
hardiksharma11 Dec 31, 2023
1940928
Update mypy.yml
hardiksharma11 Dec 31, 2023
f16e32d
Update mypy.yml
hardiksharma11 Dec 31, 2023
5ba68c4
Update manage.py
hardiksharma11 Dec 31, 2023
f085582
Added explanatory comments
hardiksharma11 Jan 2, 2024
d6d5a69
Added pull request as a trigger
hardiksharma11 Jan 2, 2024
969b2f7
minor bug fixes
hardiksharma11 Jan 2, 2024
adb4e96
removing failures
hardik-pratap-singh Jan 16, 2024
9e55939
updated mypy.yml
hardik-pratap-singh Jan 16, 2024
8768752
fixed settings directory
hardiksharma11 Feb 24, 2024
9cb73bb
fixed bugs
hardiksharma11 Feb 24, 2024
0355c47
bug fixes
hardiksharma11 Feb 24, 2024
707a62e
bug fixes
hardiksharma11 Feb 24, 2024
5bb215a
bug fixes
hardiksharma11 Feb 24, 2024
9127238
Added all files
hardiksharma11 Feb 24, 2024
c1d106d
created .bandit file
hardiksharma11 Feb 24, 2024
2103b12
updated .bandit file
hardiksharma11 Feb 24, 2024
4d23263
updated .bandit file
hardiksharma11 Feb 24, 2024
deee2fe
updated .bandit file
hardiksharma11 Feb 24, 2024
6b17f3d
updated .bandit file
hardiksharma11 Feb 24, 2024
eaf4c33
updated bandit_security_test.yml
hardiksharma11 Feb 24, 2024
a8f1bc9
fixed bandit_security_test.yml
hardiksharma11 Feb 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/bandit_security_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Security check - Bandit

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
name: Python ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install bandit

- name: Security check - Bandit
run: |
bandit -r -f json --exclude **/FusionIIIT/Fusion/settings/**,**/FusionIIIT/Fusion/settings/**,**/FusionIIIT/applications/academic_information/**,**/FusionIIIT/applications/academic_procedures/**,**/FusionIIIT/applications/feeds/**,**/FusionIIIT/applications/globals/**,**/FusionIIIT/applications/health_center/**,**/FusionIIIT/applications/hr2/**,**/FusionIIIT/applications/leave/**,**/FusionIIIT/applications/library/**,**/FusionIIIT/applications/online_cms/**,**/FusionIIIT/applications/online_cms/**,**/FusionIIIT/applications/scholarships/**,**/FusionIIIT/applications/visitor_hostel/**,**/FusionIIIT/applications/establishment/** .
- name: Security check report artifacts
uses: actions/upload-artifact@v2
with:
name: Security report
path: output/security_report.json
28 changes: 28 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "mypy check"

on: [push, pull_request]

jobs:

static-type-check:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.15'

- run: pip install mypy

- name: Get Python changed files
id: changed-py-files
uses: tj-actions/changed-files@v23
with:
files: |
*.py
**/*.py

- name: Run if any of the listed files above is changed
if: steps.changed-py-files.outputs.any_changed == 'true'
run: mypy ${{ steps.changed-py-files.outputs.all_changed_files }} --ignore-missing-imports