feat:init shellcode executor #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: Lint & Security | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Tools | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y -qq clang-tidy cppcheck shellcheck | |
| - name: Clang-Tidy | |
| run: > | |
| find src/ -name "*.c" -exec | |
| clang-tidy {} -- -Isrc -std=c11 -D_GNU_SOURCE \; | |
| - name: ShellCheck | |
| run: shellcheck scripts/*.sh | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check for secrets | |
| run: | | |
| if grep -r "password\|secret\|api_key\|token" src/ --include="*.c" -i -n; then | |
| echo "Potential secrets found in source code!" | |
| exit 1 | |
| fi |