Fix: Add write permissions for releases #2
Workflow file for this run
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: Build and Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pyinstaller | |
| - name: Build executable | |
| run: | | |
| pyinstaller --clean --noconfirm --name=SecurityScanner --onefile --windowed --add-data="security_scanner_core.py;." --hidden-import=tkinter --hidden-import=tkinter.ttk --hidden-import=requests --hidden-import=bs4 --hidden-import=urllib3 --hidden-import=ssl --hidden-import=socket --hidden-import=datetime --hidden-import=threading --hidden-import=json --hidden-import=dns --hidden-import=whois enhanced_security_scanner.py | |
| - name: Create release package | |
| run: | | |
| Copy-Item "dist\SecurityScanner.exe" -Destination "RELEASE_PACKAGE\" | |
| Compress-Archive -Path "RELEASE_PACKAGE\*" -DestinationPath "SecurityScanner-v2.1-Release.zip" | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: SecurityScanner-v2.1-Release.zip | |
| body: | | |
| # Enhanced Security Scanner v2.1 - Professional Edition | |
| ## Download and Run | |
| 1. Download `SecurityScanner-v2.1-Release.zip` | |
| 2. Extract to any folder | |
| 3. Run `SecurityScanner.exe` | |
| 4. No Python installation required! | |
| ## Features | |
| - Complete security analysis (DNS, Headers, Ports, SSL/TLS, Vulnerabilities) | |
| - Professional workflow visualization | |
| - Multi-tab results interface | |
| - Export reports (TXT, JSON, HTML) | |
| - Web data extraction | |
| ## Requirements | |
| - Windows 7/8/10/11 (64-bit) | |
| - 512 MB RAM minimum | |
| - Internet connection for scanning | |
| ## Important | |
| Only scan websites you own or have permission to test. | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |