Merge branch 'main' of https://github.com/XavLimSG/SimpleSocialMediaApp #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: MobScan Security Check | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| jobs: | |
| security-scan: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.9' | |
| - name: Install MobScan | |
| run: | | |
| pip install semgrep | |
| pip install git+https://github.com/YOUR_USERNAME/MobScan.git | |
| - name: Run MobScan | |
| run: | | |
| mobscan scan . --format sarif --output mobscan.sarif | |
| continue-on-error: true | |
| - name: Upload SARIF to GitHub Security | |
| uses: github/codeql-action/upload-sarif@v3 | |
| if: always() | |
| with: | |
| sarif_file: mobscan.sarif | |
| - name: Fail on high severity issues | |
| run: | | |
| mobscan scan . --fail-on high |